-
Notifications
You must be signed in to change notification settings - Fork 117
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
Is it true that PouchDB 7 makes this package "pouchdb-authentication" obsolete? #243
Comments
@martinhbramwell The benefit of PouchDB Authentication is to be able to login/logout, but also sign up, create and manage users... In any case, this is a layer above PouchDB. You can do all of what PouchDB Authentication does with some HTTP calls. :) |
Hi @ptitjes thank you for your super fast reply. I was trying to get started with I then saw issue #239 "PouchDb 7 : authentication doesn't work anymore" and realized that none of the fixes being discussed used Is it possible your documentation needs to be reviewed in the light of recent changes? |
Yes, the documentation needs some changes (in the example you used, the Basic Authentication header But also, I had no time to explore how the current version |
I wish I could help, but I'm trying to learn Couch/Pouch for an already behind schedule project. :-( |
To answer the question (as best as I can, after my digging around in the source code): PouchDB 7 only supports HTTP Basic Auth. pouchdb-authentication implements cookie-based auth. So no, this library is not obsolete. CouchDB docs say that cookie auth is more efficient than basic auth, but my hunch is that the difference would only be noticeable at scale. |
Just checking - I'm guessing its not possible to use this plugin to enable offline auth to an app? - in other words if I use this, I must be online and able to reach at least one couchdb node? |
@baradhili you are correct, this auth is for authenticating against other couchDB nodes. when offline, you can just create a DB and use it, no auth needed until you want to sync it. |
I seem to able to control client access to CouchDB adequately using only PouchDB.
What added benefit would I get from using
pouchdb-authentication
?The text was updated successfully, but these errors were encountered: