Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有JWT auth的Couchdb有错误“;未知“U错误:未定义”;我看不见福斯顿_Couchdb_Jwt Auth - Fatal编程技术网

带有JWT auth的Couchdb有错误“;未知“U错误:未定义”;我看不见福斯顿

带有JWT auth的Couchdb有错误“;未知“U错误:未定义”;我看不见福斯顿,couchdb,jwt-auth,Couchdb,Jwt Auth,下面是config local.ini文件 [jwt_auth] required_claims = sub [jwt_keys] hmac:_default = aGVsbG8= [chttpd] authentication_handlers = {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}, {chttpd_auth, jwt_a

下面是config local.ini文件

[jwt_auth]
required_claims = sub

[jwt_keys]
hmac:_default = aGVsbG8=

[chttpd]
authentication_handlers = {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}, {chttpd_auth, jwt_authentication_handler}
当我尝试访问http://localhost:5984 我得到下面的错误

{"error":"unknown_error","reason":"undef","ref":6776463}
我可以看到下面的登录控制台

[error] 2020-09-20T14:37:04.994313Z nonode@nohost <0.506.0> 8bbcfe9007 req_err(6776463) unknown_error : undef
    [<<"chttpd_auth:jwt_authentication_handler/1">>,<<"chttpd:authenticate_request/2 L531">>,<<"chttpd:process_request/1 L303">>,<<"chttpd:handle_request_int/1 L243">>,<<"mochiweb_http:headers/6 L150">>,<<"proc_lib:init_p_do_apply/3 L247">>]
[错误]2020-09-20T14:37:04.994313Znonode@nohost8bbcfe9007请求错误(6776463)未知错误:未定义
[,,,,,]
更多信息:

a:在docker上运行

b:沙发3.0版


我是否遗漏了任何配置,或者我们是否有任何可以交叉检查配置的参考资料。

这是版本数据库版本的问题

更新至3.1.1

[jwt_auth]
required_claims = exp

[jwt_keys]
hmac:_default = aGVsbG8=

[chttpd]
authentication_handlers = {chttpd_auth, jwt_authentication_handler}, {chttpd_auth, cookie_authentication_handler}, {chttpd_auth, default_authentication_handler}
这些是.ini文件中的配置