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 2021/03/01 15:35:32 UTC

[GitHub] [couchdb] tudordumitriu opened a new issue #3388: Authentication chttpd_auth cookie and jwt not working side by side

tudordumitriu opened a new issue #3388:
URL: https://github.com/apache/couchdb/issues/3388


   [NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ )
   The 2 authentication methods to work side by side but (according to specific configuration described below) only one will work
   ## Description
   
   [NOTE]: # ( Describe the problem you're encountering. )
   [TIP]:  # ( Do NOT give us access or passwords to your actual CouchDB! )
   If we are trying to configure
   authentication_handlers ={couch_httpd_auth, jwt_authentication_handler}, {chttpd_auth, cookie_authentication_handler}, {chttpd_auth, default_authentication_handler}
   More than that the jwt handler will only work if configured in chttpd section and cookie handler only in httpd. 
   If we try activating cookie handler in chttpd or if we try jwt handler in httpd they won't work at all.
   So, jwt and cookie not working neither in chttpd nor httpd, jwt not working in httpd and cookie not working in chttpd
   
   ## Steps to Reproduce
   
   [NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. )
   
   ## Expected Behaviour
   
   [NOTE]: # ( Tell us what you expected to happen. )
   
   ## Your Environment
   Docker Image running in K8s cluster, configured via HELM chart.
   [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: 3.1.1 Docker Image
   * Browser name and version: Chrome 88
   * Operating system and version: Windows 10 Pro
   
   ## 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] tudordumitriu commented on issue #3388: Authentication chttpd_auth cookie and jwt not working side by side

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


   Once I moved the settings in chttpd_auth and updated the handlers accordingly all went fine, both auth methods working side by side.
   Thanks and indeed the docs should be updated because is very confusing because they do work separately.


----------------------------------------------------------------
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 commented on issue #3388: Authentication chttpd_auth cookie and jwt not working side by side

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


   `couch_httpd_auth` is deprecated, everything should be in `chttpd_auth`. Does it work if you put everything inside there? If not, it's a bug. If yes, it's a documentation bug.


----------------------------------------------------------------
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] tudordumitriu closed issue #3388: Authentication chttpd_auth cookie and jwt not working side by side

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


   


----------------------------------------------------------------
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