incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <>
Subject Re: CouchDB: Information about current user
Date Thu, 09 Jan 2014 16:23:54 GMT
GET /_session [1]
grab value from /userCtx/name => $name
GET /_users/org.couchdb.user%3A$name

Note, that there is no any "current" user, but only stateless requests
with some authentication "token" (Authentication header, Cookie, OAuth
things etc.) which allows CouchDB to apply context of related user on
request processing.



On Thu, Jan 9, 2014 at 8:07 PM, Hank Knight <> wrote:
> This returns information in JSON format about the user "xyz":
> How can I get the same information in the same format for the current
> user, based on the username the use used to log in?

View raw message