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 2020/11/05 07:44:25 UTC

[GitHub] [couchdb] RJNaamthos opened a new issue #3246: Couchdb3.1.1: Logout not working

RJNaamthos opened a new issue #3246:
URL: https://github.com/apache/couchdb/issues/3246


   [NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ )
   
   ## Description
   Enabled "require_valid_user" attribute under [chttpd] section to true and modified authentication_handlers value to only default_authentication_handler
   
   [chttpd]
   require_valid_user = true
   authentication_handlers = {chttpd_auth, default_authentication_handler}
   
   [chttpd_auth]
   authentication_db = _users
   
   when accessing CouchdbUI fauxton, browser pop up comes for authentication. Once providing the credentials, able to login and access couchdb UI.  However on click of logout button, nothing happens. It does not logout the User.
   
   [NOTE]: # ( Describe the problem you're encountering. )
   [TIP]:  # ( Do NOT give us access or passwords to your actual CouchDB! )
   
   ## Steps to Reproduce
   - Modified the values in local.ini.
   
   [chttpd]
   require_valid_user = true
   authentication_handlers = {chttpd_auth, default_authentication_handler}
   
   [chttpd_auth]
   authentication_db = _users
   
   - Login through CouchdbUI fauxton, browser pop up comes for authentication. Provide credentials.
   - Once login through credentials, now click on logout.
   - Logout does not work.
   
   [NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. )
   
   ## Expected Behaviour
   - User should be logged out on click of logout.
   
   [NOTE]: # ( Tell us what you expected to happen. )
   
   ## Your Environment
   
   [TIP]:  # ( Include as many relevant details about your environment as possible. )
   [TIP]:  # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
   
   * CouchDB version used: Couchdb 3.1.1
   * Browser name and version:  Firefox, Chrome
   * Operating system and version: CentOS 7.8
   
   ## Additional Context
   
   [TIP]:  # ( Add any other context about the problem here. )
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [couchdb] wohali closed issue #3246: Couchdb3.1.1: Logout not working

Posted by GitBox <gi...@apache.org>.
wohali closed issue #3246:
URL: https://github.com/apache/couchdb/issues/3246


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [couchdb] ustun commented on issue #3246: Couchdb3.1.1: Logout not working

Posted by GitBox <gi...@apache.org>.
ustun commented on issue #3246:
URL: https://github.com/apache/couchdb/issues/3246#issuecomment-723494640


   > browser pop up comes for authentication
   
   @RJNaamthos  this is browser's http authentication, so browser is caching the login. it is tricky to get logout working robustly there.. see https://www.php.net/manual/en/features.http-auth.php for some techniques to force logout in some browsers. I don't know if there is anything in couchdb to combat that (I'm not a couchdb dev, just another user)
   
   It should log out if you close the browser tab.
   
   Does logout work if you login from the normal web form? I always use that because of this issue.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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