CouchDB supports HTTP Basic, Cookie, and OAuth authentication options. It
would be great if couchdb-python made Cookie authentication available. It
would take some extension to http.py, but should be a fairly minimal change.
Since there is OAuth support patch (issue 158), probably we need to extend
Session object to support custom auth providers: Basic(default), Cookie and
OAuth(if oauth lib available).
What's the use case for supporting cookie auth in a library like
couchdb-python? My understanding is that it's only there to support pretty
login forms, something a library (presumably) has no need for.
Case is when user had been already auth'ed at CouchDB, you has cookie
about, but no credentials. The basic example is CouchDB external process,
which might been called by such user and which required to callback CouchDB
for some additional data: it'll has userctx, cookies, but no user
credentials to request CouchDB behind of scene unless you made by another
user name which may create potentially issues.