hawkrdg opened a new issue #2730: 403 accessing _users
URL: https://github.com/apache/couchdb/issues/2730
 
 
   just installed v3.0 and can't get a logged in user to access their doc
   
   test:
   
   C:\Users\cliff>curl -X POST http://192.168.1.25:5984/_session -d 
"name=sally.user&password=pw"
   returns
   {"ok":true,"name":"sally.user","roles":["user","supervisor"]}
   
   C:\Users\cliff>curl -X GET 
http://192.168.1.25:5984/_users/org.couchdb.user:sally.user
   returns
   {"error":"unauthorized","reason":"You are not authorized to access this db."}
   
   this is a basic install of v3.0. I created server admins, then created 
_users table in fauxton. Added users in the usual fashion and the docs seem 
fine. I ran into this building a login component in angular. I get the same 
result using angular's HttpClient - login works fine, GET after logging in 
returns 403. Angular's HttpClient has withCredentials = true as an option, and 
this has been working fine in couch v2.3
   
   I have tested this against require_valid_user both true and false - same 
result.
   
   any help would be appreciated here: am I doing something lame...? Do I need 
some configuration set...? Or is this a 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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to