Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/299.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
Couchdb Irishoch基本身份验证不起作用_Couchdb - Fatal编程技术网

Couchdb Irishoch基本身份验证不起作用

Couchdb Irishoch基本身份验证不起作用,couchdb,Couchdb,我只有一个服务器管理员在我的Iriscoch设置 我可以通过cookie身份验证成功登录 > POST https://myserv.iriscouch.com/_session name=username&password=password {"ok":true,"name":null,"roles":["_admin"]} 但是基本auth不起作用 > PUT https://username:password@myserv.iriscouch.com/m

我只有一个服务器管理员在我的Iriscoch设置

我可以通过cookie身份验证成功登录

> POST https://myserv.iriscouch.com/_session
      name=username&password=password

{"ok":true,"name":null,"roles":["_admin"]}
但是基本auth不起作用

> PUT https://username:password@myserv.iriscouch.com/mynewdb

{"error":"unauthorized","reason":"You are not a server admin."}

我不知道这是Irishoch还是couchdb配置问题,正如Dominic在评论中建议的那样。我检查了我的客户原始请求,发现
授权
头没有正确生成您尝试过使用
授权
HTTP头吗?