couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bykov <>
Subject how to create cookie-session for an other user?
Date Fri, 03 May 2013 12:51:10 GMT

I use a node-server along with couchdb. With passport.js I can authenticate
user with third-party oAuth provider, ok. I got this user in CouchDB.

Now I like to set an session cookie in CouchDB and redirect it to main host
which is couchapp.

I could do this simply with:

curl -X POST -i localhost:5984/_session?next=/ -d name=me -d

but I know only hashed-password, not plain text password for this user.

How I can create session cookie for this user with hashed-password, _id,
_rev, etc,  but without the plain password?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message