You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/05/03 02:51:29 UTC

[GitHub] cgwic opened a new issue #1311: Cookie auth broken when 'authentication_handlers' added to local.ini

cgwic opened a new issue #1311: Cookie auth broken when 'authentication_handlers' added to local.ini
URL: https://github.com/apache/couchdb/issues/1311
 
 
   ## Expected Behavior
   ```
   curl -vX GET 192.168.99.100:5984/_session --cookie AuthSession=ZGlqbzo...
   {"ok":true,"userCtx":{"name":"name","roles":["role"]},"info":{"authentication_db":"_users","authentication_handlers":["cookie","default"],"authenticated":"cookie"}}
   ```
   
   ## Current Behavior
   ```
   curl -vX GET 192.168.99.100:5984/_session --cookie AuthSession=ZGlqbzo...
   {"ok":true,"userCtx":{"name":null,"roles":[]},"info":{"authentication_db":"_users","authentication_handlers":["cookie","default"]}}
   ```
   
   ## Possible Solution
   comment this string in [chttpd] section in local.ini file
   `authentication_handlers = {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}`
   
   ## Steps to Reproduce (for bugs)
   1. Add `authentication_handlers = {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}` in [chttpd] section in local.ini file
   2. Restart couchdb
   3. Try to get access with nonadmin user using cookie auth
   
   ## Context
   It's not a bug for me just unexpected behaviour. But i'm new to CouchDB and it takes some time to find cause of this.
   
   ## Your Environment
   * Version used: CouchDB 2.1.1
   * Browser Name and version: curl 7.58.0, chrome 66.0.3359
   * Operating System and version (desktop or mobile): Windows 7, Android 5.1, Linux default 4.9.93-boot2docker
   * Link to your project: private
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services