couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <kxe...@gmail.com>
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.

[1]: http://docs.couchdb.org/en/latest/api/server/authn.html#get--_session

--
,,,^..^,,,


On Thu, Jan 9, 2014 at 8:07 PM, Hank Knight <hknight555@gmail.com> wrote:
> This returns information in JSON format about the user "xyz":
> http://example.com/_users/org.couchdb.user%3Axyz
>
> 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?

Mime
View raw message