kvzhkv opened a new issue #747: proxy authentication still not configurable URL: https://github.com/apache/couchdb/issues/747 <!--- Provide a general summary of the issue in the Title above --> Can't have proxy authentication working with next configuration: ``` [httpd] authentication_handlers = {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, proxy_authentication_handler}, {couch_httpd_auth, default_authentication_handler} ``` ## Expected Behavior <!--- If you're describing a bug, tell us what should happen --> <!--- If you're suggesting a change/improvement, tell us how it should work --> I have "testdb" with next "_security" document: ``` { "admins": { "names": [ "testuser" ] }, "members": { "names": [ "testuser" ] } } ``` I need to send any requests to "testdb" with header: "X-Auth-CouchDB-UserName: testuser" and get success responses:) ## Current Behavior <!--- If describing a bug, tell us what happens instead of the expected behavior --> <!--- If suggesting a change/improvement, explain the difference from current behavior --> but all I have is: ``` { "error": "unauthorized", "reason": "You are not authorized to access this db." } ``` also sending GET request to "/_session" it responses with: ``` { "ok": true, "userCtx": { "name": null, "roles": [] }, "info": { "authentication_db": "_users", "authentication_handlers": [ "cookie", "default" ] } } ``` so no "proxy" in authentication_handlers Also I should mention that I've tried both with require_valid_user=true and false I was waiting so long for 2.1.0 expecting proxy_authentication to be fixed... I need it for my app... I can't believe I have to get back to 1.6.1 again:( Does anyone have the same issue? I'm using express app as a middleware between client and couchdb. As possible solution of this problem I'm thinking about generating couchdb cookie on the fly... but it seems overwhelmed to me. Proxy authentication should just work as it is in 1.6.1 ## Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * Version used: CouchDB 2.1.0 * Browser Name and version: Chrome 60 * For sending requests I use: Postman 5.1.3 * Operating System and version: Mac OS 10.12.5 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
With regards, Apache Git Services