Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 30CC7DB7C for ; Thu, 8 Nov 2012 20:23:36 +0000 (UTC) Received: (qmail 11982 invoked by uid 500); 8 Nov 2012 20:23:34 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 11949 invoked by uid 500); 8 Nov 2012 20:23:34 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 11941 invoked by uid 99); 8 Nov 2012 20:23:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2012 20:23:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcdcu-couchdb-user@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2012 20:23:27 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TWYd9-0002XM-BY for user@couchdb.apache.org; Thu, 08 Nov 2012 21:23:15 +0100 Received: from 76-219-201-97.lightspeed.irvnca.sbcglobal.net ([76.219.201.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Nov 2012 21:23:15 +0100 Received: from bwcode4u by 76-219-201-97.lightspeed.irvnca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Nov 2012 21:23:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@couchdb.apache.org From: bsquared Subject: Re: can replicator work with cookies somehow? Date: Thu, 08 Nov 2012 12:22:56 -0800 Lines: 29 Message-ID: References: <20121011164501.5b4b2c54@eee-az> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 76-219-201-97.lightspeed.irvnca.sbcglobal.net User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 In-Reply-To: <20121011164501.5b4b2c54@eee-az> X-Virus-Checked: Checked by ClamAV on apache.org 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