You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Jeff Charette <io...@yahoo.com> on 2013/03/13 01:08:37 UTC
Passing authentication
How do you pass authentication to an outside process? Is there a way to do this with headers?
My use case is to use externals to pass an already authenticated request directly to node then have node act as that user on the users documents.
Jeff Charette | Principal
We Are Charette
web / identity / packaging
m 415.298.2707
w wearecharette.com
e jeffrey@wearecharette.com
Re: Passing authentication
Posted by Carlos Notebook <ca...@gmail.com>.
Passing the headers is also controlled by a flag in the configuration.
Also, check that no other process / middleware from your platform is
overwriting them.
On Mar 18, 2013 6:36 PM, "Jeff Charette" <io...@yahoo.com> wrote:
> I ended up using the admin account from couch to do what I need, but am
> going to circle back on this. I tried that approach by passing the
> AuthSession already to no avail. What else do I need in the header or is
> there a good doc on this?
>
> Jeff Charette | Principal
> We Are Charette
> web / identity / packaging
>
> m 415.298.2707
> w wearecharette.com
> e jeffrey@wearecharette.com
>
> On Mar 13, 2013, at 3:03 PM, Stephen Bartell <sn...@gmail.com> wrote:
>
> > Jeff, the auth is in the headers.
> >
> > Using externals, your node app will get the request, which will contain
> the headers, which will contain the auth. Have the app pick the auth bits
> out of the headers and plug them into the headers of the new requests it is
> about to make.
> >
> > On Mar 12, 2013, at 5:08 PM, Jeff Charette <io...@yahoo.com> wrote:
> >
> >> How do you pass authentication to an outside process? Is there a way
> to do this with headers?
> >>
> >> My use case is to use externals to pass an already authenticated
> request directly to node then have node act as that user on the users
> documents.
> >>
> >> Jeff Charette | Principal
> >> We Are Charette
> >> web / identity / packaging
> >>
> >> m 415.298.2707
> >> w wearecharette.com
> >> e jeffrey@wearecharette.com
> >
>
>
Re: Passing authentication
Posted by Jeff Charette <io...@yahoo.com>.
I ended up using the admin account from couch to do what I need, but am going to circle back on this. I tried that approach by passing the AuthSession already to no avail. What else do I need in the header or is there a good doc on this?
Jeff Charette | Principal
We Are Charette
web / identity / packaging
m 415.298.2707
w wearecharette.com
e jeffrey@wearecharette.com
On Mar 13, 2013, at 3:03 PM, Stephen Bartell <sn...@gmail.com> wrote:
> Jeff, the auth is in the headers.
>
> Using externals, your node app will get the request, which will contain the headers, which will contain the auth. Have the app pick the auth bits out of the headers and plug them into the headers of the new requests it is about to make.
>
> On Mar 12, 2013, at 5:08 PM, Jeff Charette <io...@yahoo.com> wrote:
>
>> How do you pass authentication to an outside process? Is there a way to do this with headers?
>>
>> My use case is to use externals to pass an already authenticated request directly to node then have node act as that user on the users documents.
>>
>> Jeff Charette | Principal
>> We Are Charette
>> web / identity / packaging
>>
>> m 415.298.2707
>> w wearecharette.com
>> e jeffrey@wearecharette.com
>
Re: Passing authentication
Posted by Stephen Bartell <sn...@gmail.com>.
Jeff, the auth is in the headers.
Using externals, your node app will get the request, which will contain the headers, which will contain the auth. Have the app pick the auth bits out of the headers and plug them into the headers of the new requests it is about to make.
On Mar 12, 2013, at 5:08 PM, Jeff Charette <io...@yahoo.com> wrote:
> How do you pass authentication to an outside process? Is there a way to do this with headers?
>
> My use case is to use externals to pass an already authenticated request directly to node then have node act as that user on the users documents.
>
> Jeff Charette | Principal
> We Are Charette
> web / identity / packaging
>
> m 415.298.2707
> w wearecharette.com
> e jeffrey@wearecharette.com