couchdb-python
couchdb-python copied to clipboard
Cookie Authentication
From bigbluehat on October 04, 2012 22:25:13
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.
Thanks!
Original issue: http://code.google.com/p/couchdb-python/issues/detail?id=216
From kxepal on October 04, 2012 13:43:07
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).
From [email protected] on October 09, 2012 01:12:52
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.
From kxepal on October 09, 2012 18:37:28
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.