couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "Session_API" by RobertNewson
Date Tue, 08 Jan 2013 02:23:45 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Session_API" page has been changed by RobertNewson:

restore information on GET /_session

  === Log in ===
- To create a session (=log in), do a
+ To acquire a session cookie, do a
    POST /_session
  with "name" and "password" fields. These can be sent either as JSON or the standard form
data encoding; just be sure to set the Content-Type appropriately. (The latter format allows
you to log in directly from a simple HTML form.)
+ You can see your logged-in user name and roles with 
+ {{
+   GET /_session
+ }}}
+ if you pass either your session cookie or authenticate with basic auth;
+ {{{
+    Authorization: Basic <base64-encoded-username:password>
+ }}}
  The username is the "name" field of a user's record in CouchDB's _users database.

View raw message