incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: how to create cookie-session for an other user?
Date Fri, 03 May 2013 13:43:04 GMT
You can't because, if you think about it, if you could login as
someone without knowing their password it would defeat the purpose of
authentication. :)

B.

On 3 May 2013 13:51, Michael Bykov <m.bykov@gmail.com> wrote:
> Hi,
>
> 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=/myhost.org -d name=me -d
> password=secret
>
> 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?
>
>
> --
> лю.
>
> http://diglossa.ru
> xmpp://m.bykov@jabber.ru

Mime
View raw message