-
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
getSession() method not working for different domain #271
Comments
Hello @sinan,
Thanks for the response, I've changed the bind address as you advised but
still not working as expected
…On Thu, Jan 5, 2023 at 9:46 AM Sinan Gabel ***@***.***> wrote:
Hi!
It is probably not a pouchdb-authentication problem but a problem with
your couchdb configuration.
You can try in your couchdb configuration to set:
[chttpd] bind_address 0.0.0.0
—
Reply to this email directly, view it on GitHub
<#271 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJSY7B5M35M7BCAQ7J7ZFRDWQ2C4RANCNFSM6AAAAAATKWA76U>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the pouchdb-authentication plugin for my couchdb. whenever I try to login with a valid user via the domain http://localhost:5984/mydb the getSession() method returns the respective user name in the userCxt (userCtx: {name:"testUser", roles: []}). However the moment I try to use a different domain like http://127.0.0.1:5984/mydb getSession() method returns a null name (userCtx: {name: null, roles: []}). I'm using vue for my front end
Expected Behavior
I'm actually expecting to be able to login any remote couchdb domain and the getSession() method should return the respective authenticated userCxt name
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
1.Install pouchdb 7.3.1 and created a pouchdb instance to a couchdb http server
2. Install pouchdb-authentication and use the plugin with pouchdb
3. pass username and password to the pouchdb instance via a vue form and authenticating the user with login() method
4. call the getSession() method on the authenticated user
Context
Your Environment
The text was updated successfully, but these errors were encountered: