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 <[email protected]> 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://[email protected]

Reply via email to