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 A2F80F3B3 for ; Fri, 31 May 2013 20:51:44 +0000 (UTC) Received: (qmail 28464 invoked by uid 500); 31 May 2013 20:51:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 28411 invoked by uid 500); 31 May 2013 20:51:43 -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 28403 invoked by uid 99); 31 May 2013 20:51:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 20:51:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of snbartell@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-la0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 20:51:36 +0000 Received: by mail-la0-f45.google.com with SMTP id fr10so1801202lab.32 for ; Fri, 31 May 2013 13:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=lNCoXp1HC27P5rqDz+kR/I0wS/TsNTY0bPqTVkBh1BU=; b=Ka9h1sp3rupL0g/r09xJELkeUr9O6NybePo/5jAVI5qfPmGwCypAOZjKLk+T37ja8u TvQyuKtdzVsLg1LDzrRSEy7KH00J9qHMHUEYmqLZF+5PYvSgBQvQs9oioae/sz215ryc 27EFQ5MLZjlrbZ+IgExPFd1Uz7DxgDhLnmVltpVICvBnt5BnI4jbibwUsBRiPRmYO5Kt GOeYHqte33edre5IEKg8Df0t736D1I1gGgwvezHkHK4OzhwQe1/lmgeIf7evgJ2RJpfD FGSyaZ4Gg2gjRmQpE0OL25ZiCKYZooU1aMZE/f5cpJq03jdbVXTIUpuV1o+Gkwfox0vs 32lg== X-Received: by 10.112.142.8 with SMTP id rs8mr6668831lbb.8.1370033475208; Fri, 31 May 2013 13:51:15 -0700 (PDT) Received: from [10.69.41.36] (static-108-23-87-130.lsanca.fios.verizon.net. [108.23.87.130]) by mx.google.com with ESMTPSA id w20sm12334380lbi.14.2013.05.31.13.51.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 13:51:14 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: virtualizing databases From: Stephen Bartell In-Reply-To: Date: Fri, 31 May 2013 13:51:17 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <8AC696E8-CFF7-4783-B5F1-8722A844B7AE@gmail.com> <624A6CE3-A2ED-4AEA-B02A-B9D2503B08B5@gmail.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org No worries! I did not try with basic auth. My user facing apps all = authenticate with cookies. And that is what does not work. I tested = this by setting up a proxy handler to a remote database with the same = security as the local database. I then accessed the database via futon = and attempted to log in. It didn't work. Maybe proxying cookies is a = bug then? On May 31, 2013, at 1:43 PM, Benoit Chesneau = wrote: > On Fri, May 31, 2013 at 10:41 PM, Stephen Bartell = wrote: >> Benoit, I mentioned that in my email. I'll repaste it here: >>=20 >> By the way, I gave https_global_handlers a try. This seems to work = fine if the database is local. However, it doesn't work if the = destination is remote and authentication is involved. Is this because = the remote database does not have a session? Is it because auth isn't = passed through the proxy? Is this a bug? >>=20 >=20 > i misread that part sorry :) Did you try to pass the auth in the url ? > ie. http://user:pass@.... >=20 > if it doesn't work, adding that feature should be easy. >=20 > - benoit >=20 >=20 >>=20 >> On May 31, 2013, at 1:34 PM, Benoit Chesneau = wrote: >>=20 >>> On Fri, May 31, 2013 at 9:53 PM, Stephen Bartell = wrote: >>>> Thanks guys. >>>>=20 >>>> Benoit, it looks like the alias improvement you are talking about = is couchdb-1736? It still looks like its baking. What I need is = something a little bigger than aliases though. I'd like the ability to = redirect to a remote Couch. >>>=20 >>> You can probably use the proxy handler in couch to do that >>>=20 >>> [httpd_global_handlers] >>> remotedb =3D {couch_httpd_proxy, handle_proxy_req, >>> <<"http:/host:port/remotedb">>} >>>=20 >>> - benoit >>=20