You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Version of PouchDB Authentication: 1.1.3
Version of PouchDB: 7.3.1
Platform name and version:
Operating System and version: MacOS Catalina
Server: CouchDB
Link to your project:
The text was updated successfully, but these errors were encountered:
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>
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: