couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Session_API" by StephaneAlnet
Date Thu, 21 Apr 2011 21:49:50 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 StephaneAlnet.
The comment on this change is: More details on Authorization header, Futon doesn't seem to
use POST.
http://wiki.apache.org/couchdb/Session_API?action=diff&rev1=4&rev2=5

--------------------------------------------------

  {{{
    POST /_session
  }}}
- with (by default) a standard Basic Authentication header.
+ with (by default) a standard Basic Authorization header:
+ {{{
+    Authorization: Basic <base64-encoded-username:password>
+ }}}
  
  The username is the "name" field of a user's record in CouchDB's _users database.
  
@@ -64, +67 @@

  
  If the session is not valid (not logged in, etc.) an exception will be thrown with an "unauthorized"
error.
  
+ Note: it seems Futon does not use POST but simply submits a GET /_session with the proper
Authorization header.
+ 
  === Session Timeout ===
  
  The session timeout is specified by the "timeout" parameter in the "couch_httpd_auth" section
of configuration.

Mime
View raw message