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: can replicator work with cookies somehow?
Date Thu, 08 Nov 2012 21:28:37 GMT
You can use cookie auth for the replication using this little known API
variant;

"target":{"url" : "http://host:port/db",
"headers":{"cookie":"AuthSession=foo"}}

B.


On 8 November 2012 20:22, bsquared <bwcode4u@gmail.com> wrote:

> On 10/11/2012 06:45 AM, svilen wrote:
>
>> i need to start replications on behalf of a user.
>>
>> i see there's basic http user/psw authtenticaion, and some form of
>> oauth.
>> basic http means i have to keep usr/psw around, and use them when i need
>> replication.
>> but i'd like to avoid storing that usr/psw.
>>
>> as i see there are cookies (via /_session), can replicator work with
>> cookies somehow?
>>
>> or if not, how can i use oauth given there's no 3rd party involved
>> (facebook/twitter/..)? e.g. some kind of degenerate made-up-myself?
>>
>> ciao
>> svil
>>
>>   I believe the credentials have to be supplied in the URL ie.
> https://user:password@couchdb_**instance[:port].
>
> There is a gist on github that covers the replicator db.
>
> gist.github.com/832610
>
>
> --
> Regards,
> Brian
>
>

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