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 8065E10152 for ; Mon, 14 Apr 2014 15:56:34 +0000 (UTC) Received: (qmail 68308 invoked by uid 500); 14 Apr 2014 15:56:17 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 68214 invoked by uid 500); 14 Apr 2014 15:56:16 -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 68187 invoked by uid 99); 14 Apr 2014 15:56:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 15:56:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.109.115.19] (HELO nm14-vm4.access.bullet.mail.bf1.yahoo.com) (216.109.115.19) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 15:56:11 +0000 Received: from [66.196.81.166] by nm14.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 15:55:48 -0000 Received: from [66.196.81.143] by tm12.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 15:55:48 -0000 Received: from [127.0.0.1] by omp1019.access.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 15:55:48 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 89254.90622.bm@omp1019.access.mail.bf1.yahoo.com Received: (qmail 37234 invoked by uid 60001); 14 Apr 2014 15:55:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1397490947; bh=xpp1ivNdy+7XDoMSkfyzv1AeRWLh66lNYRkQBC1w00Q=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=qlVibzAchUlTXd17/YjCsYq74L2/7afzPS2zurI9M2Kwf6cJT9DqEgs7JfBSdLGP/p+VIQ7tiOXOB85O4awJ+kipyxqBueW0E+HNgJEEcALLef5QS8WSjjn8cEJZkX3b5WHD0krHsbiYXGaHdQBmX0mK3ws8xdZcSPFvQrMjZlA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=VqzJm68mUBed2iDDJgSlV7sy1+BWVZ8NxyxQBzFEcEZSbilEkaDjQ5/YbD8lFd9XOrfLpQfYnVXIqTO/A2kbd0SGiSSxadqMmVK51/qVfZLjkQ4GX0jxf6SfydCt8gJ0idhzb3cio/1x0QxhE5MqvhjSKhn4C9GsNRzM+z5+4wA=; X-YMail-OSG: LQe_Da4VM1mTHyYltL7O.sQ3DTS2zAWCBxL9pfIK5X24yQU qgzN72Cr6HpiLIfuTGxy33xYDj.AiOwML1or4kRf9QRMQbyskmWZ_gxX8zoD ix1dRpzuNBcza3ujhz6d5uXEOrs6vzQ8ASF.lLI.8e6aMCV16Ikjx6TxZEu6 HDDZl7ws888NL4z3rCER1HT6PqHJt.pyOdudZQcbHOGWhZD0WSmHzHss_V1e bKbd9Oo9asZASeTcg2yAmcN_pEqVKBqyW5UhP12mJRTAFXCmLI0TmaDDvhNB J7_dhvOy2i1s_5ITOqfU5GHZ9tLNlBjkG9vq3KFpcB8hGif.muq5PU6k48VN 1_Yh8JFhumARHE.f7rtm9Pejh_7kUkRJs7fGxyjLu5p.mrf9b6rWemolay4Y QxrwT_eCerIfgdwtZALhFeBwwxmAyD4ZJcpKtkDZubUa7T_8WWYaxcbBECDf xY9y21kyyefjpa8Mfx3dgirNlvWr48CXRIznDyqDBQnbjyZ6wLm3L8VvNiG5 4uVo1L7zMf1tDI3ToX4u_A6pjrSN0GAf91PriOyBdhIyHOZGy3segdcwLINw mkoGPu3QG20TJsiOSlx_u4MAbuH93OuXHVaqbLhrvEAYULunb_hTHoLRBH7A 1vwxlLKl3L06x1s2ChinkGVJ6L5bAfufEM6vD8yrgaByjKp8sDjJq9165iDL o7j9B2lQ_wkabbZUFAP.kJ8gpoeJRVxGXWNldwy6tYSiHSVbzeoQPUp3XV4r 8_J3SnC3EAgAsjQ-- Received: from [99.189.12.49] by web181703.mail.ne1.yahoo.com via HTTP; Mon, 14 Apr 2014 08:55:47 PDT X-Rocket-MIMEInfo: 002.001,Tm8sIHRoYXQgZG9lc24ndCB3b3JrLsKgIEl0IGFjdHVhbGx5IGlzIHdvcnNlLgoKSWYgSSByZW1hcCB0aGUgdmhvc3RzIHRvIGEgREIvRG9jdW1lbnQsIGl0IGdpdmVzIG1lIHRoZSBXSE9MRSBET0NVTUVOVDoKW3Zob3N0c10Kd3d3Lm15Y29tcGFueS5jb20gPSAvbG9naW4vc291cmNlLwoKUmVzdWx0czoKd3d3Lm15Y29tcGFueS5jb23CoCAtPiBtYXBzIHRvIC0.IHd3dy5teWNvbXBhbnkuY29tL2xvZ2luL3NvdXJjZS8KKHdoZXJlICdsb2dpbicgaXMgdGhlIGxhbmRpbmcgem9uZSwgYW5kICdzb3VyY2UnIGkBMAEBAQE- X-Mailer: YahooMailWebService/0.8.185.657 References: <1397424531.24083.YahooMailNeo@web181703.mail.ne1.yahoo.com> <1397484841.28230.YahooMailNeo@web181702.mail.ne1.yahoo.com> Message-ID: <1397490947.60337.YahooMailNeo@web181703.mail.ne1.yahoo.com> Date: Mon, 14 Apr 2014 08:55:47 -0700 (PDT) From: Scott Weber Reply-To: Scott Weber Subject: Re: authentication_redirect is not working. To: "user@couchdb.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="943787736-1884480716-1397490947=:60337" X-Virus-Checked: Checked by ClamAV on apache.org --943787736-1884480716-1397490947=:60337 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable No, that doesn't work.=A0 It actually is worse.=0A=0AIf I remap the vhosts = to a DB/Document, it gives me the WHOLE DOCUMENT:=0A[vhosts]=0Awww.mycompan= y.com =3D /login/source/=0A=0AResults:=0Awww.mycompany.com=A0 -> maps to ->= www.mycompany.com/login/source/=0A(where 'login' is the landing zone, and = 'source' is the document that has the HTML attachment)=0A=0A=0AOn the other= hand, when I map it to the document like this:=0A[vhosts]=0Awww.mycompany.= com =3D /login/source/index.html=0A=0AResults:=0Awww.mycompany.com=A0=A0 ->= maps to ->=A0 www.mycompany.com/login/source/index.html=0Ahowever, now it = is trying to open style sheets and js files that have the name:=0A=0Awww.my= company.com/login/source/index.html.mystyle.css=0Awww.mycompany.com/login/s= ource/index.html.mainpage.js=0A=0AThe obvious work around is to use the for= mer option and mustspecify "www.mycompany.com/index.html" as required on th= e address bar.=0A=0AWhich is not what is expected or were hoping for.=A0 Al= l other web servers allow a default doc setting, typically index.html or in= dex.htm.=A0 Does CouchDB not have something equivalent? =0A=0A=0A-Scott=0A= =0A=0A=0A=0A________________________________=0A From: Benoit Chesneau =0ATo: "user@couchdb.apache.org" ;= Scott Weber =0ASent: Monday, April 14, 2014 9:2= 2 AM=0ASubject: Re: authentication_redirect is not working.=0A =0A=0AOn Mon= , Apr 14, 2014 at 4:14 PM, Scott Weber wrote:=0A= =0A> Hmmmm.=0A> So your saying that 'www.mycompany.com/'=0A> would have to = look like:=0A>=0A> {"couchdb":"Welcome","uuid":"5efb66f9db578b0fb0bffc3be5b= 56682","version":"1.5.0","vendor":{"version":"1.5.0","name":"SomeCompany"}}= =0A> becauase CouchDB can't set up a page that looks like a standard defaul= t=0A> "index.html" ?=0A>=0A>=0AYou can use the vhost feature + redirect to = redirect / to a page in a doc=0Aor a ddoc.=0A=0A- benoit=0A=0A>=0A>=0A>=0A>= =0A>=0A> ________________________________=0A>=A0 From: Johannes J=F6rg Schm= idt =0A> To: user@couchdb.apache.org=0A> Sent: Monday= , April 14, 2014 2:57 AM=0A> Subject: Re: authentication_redirect is not wo= rking.=0A>=0A>=0A> Basically its because CouchDB assumes browsers are reque= sting JSON.=0A>=0A> https://issues.apache.org/jira/browse/COUCHDB-1175 is n= ot resolved,=0A> because=0A> the devs were not able to gain consense.=0A>= =0A> Greetings=0A> Am 13.04.2014 23:29 schrieb "Scott Weber" :=0A>=0A> > Lets start with this, because it is almost exactly = what I am fighting=0A> > with, but it doesn't work for me, like it did appe= ar to work for the=0A> person=0A> > how posted this:=0A> >=0A> >=0A> >=0A> = http://stackoverflow.com/questions/18966385/couchdb-access-denied-redirect= =0A> >=0A> > The application I am building is open to the public, using Cou= chDB for=0A> > it's authentication, and 100% inside CouchDB with all JS, CS= S, HTML as=0A> > attachments.=0A> >=0A> > Logically the uses starts at a lo= gin page which has no security, and=0A> after=0A> > success login, are redi= rected to other databases that service page=0A> requests=0A> > (which are b= ased on their name, role, etc...)=0A> >=0A> > When I go directly to a datab= ase without logging in, I can't access it.=0A> > Which is fine, except I am= getting that rather dry message:=0A> >=0A> >=0A> > {"error":"unauthorized"= ,"reason":"You are not authorized to access this=0A> > db."}=0A> > Which is= really counter intuitive for an application.=0A> >=0A> > I have set the au= thentication redirect as describe in the link, to send=0A> > them to the lo= gin page, but nothing happens.=A0 I still get the above dry=0A> > message.= =0A> >=0A> > This is on both IE and FF.=0A> >=0A> > Any idea how to get an = acceptable page?=0A> >=0A> >=0A> > -Scott=0A> --943787736-1884480716-1397490947=:60337--