【发布时间】:2020-09-21 15:09:57
【问题描述】:
这里是配置 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">>]
更多信息:
a:在 docker 上运行
b:沙发 3.0 版
我是否错过了任何配置,或者我们有任何可以交叉检查配置的参考。
【问题讨论】: