-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication not work with pouchdb 7.2.1 #264
Comments
If you are using couchdb 3.0 or later then see the previous Issue #263 for a solution. |
I'm currently having the same issue, did you end up finding out what the problem was? |
Hello @shaohli2021 , I didn't have the opportunity to test the @SinanGabel solution, I'm currently connecting using basic user and password authentication. |
I also faced this issue, however it turned out not to be a couchdb/pouchdb issue but a browser related problem. PouchDB Authentication returns In production, your app should would work if your CouchDB is hosted on the same root domain, e.g x.couch.com, y.couch.com. However if they're on entirely different domains, you might have to modify your request response headers. If it doesn't work in development mode, you can turn off the behavior on Google chrome by As of today, it google chrome is the only browser that has this implemented (version 80+) |
PS samesite cookies, one can do the following: (1) In couchdb local.ini configuration set: [couch_httpd_auth] (2) In your reverse proxy you will need to make a change too, for nginx web server one can add: proxy_cookie_path / "/; HTTPOnly; Secure"; |
I am using Google Chrome 90 and facing this issue. I have disable the "Enable removing SameSite=None cookies" but still it doesnt work.. |
Hello, I have the same problem with pouchDB authentication and VueJS. In couchdb local.ini configuration, i add: [couch_httpd_auth] this.remote.login returns me the correct information, but this.remote.getsession returns me an empty userCtx. I tested with Axios, when I query the getsession userCtx empty Best regard |
Hello, I am trying to use authentication in pouchDb 7.2.1. The login is successful but when starting the synchronization I receive the following message: "You are not authorized to access this db".
I followed the steps described in the documentation. And I didn't find any configuration flaws.
Thanks.
The text was updated successfully, but these errors were encountered: