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 DD53911CBA for ; Mon, 14 Apr 2014 14:14:32 +0000 (UTC) Received: (qmail 36379 invoked by uid 500); 14 Apr 2014 14:14:30 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 36305 invoked by uid 500); 14 Apr 2014 14:14:30 -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 36297 invoked by uid 99); 14 Apr 2014 14:14:29 -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 14:14:29 +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.114.82] (HELO nm2-vm9.access.bullet.mail.bf1.yahoo.com) (216.109.114.82) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 14:14:25 +0000 Received: from [66.196.81.158] by nm2.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 14:14:01 -0000 Received: from [66.196.81.128] by tm4.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 14:14:01 -0000 Received: from [127.0.0.1] by omp1004.access.mail.bf1.yahoo.com with NNFMP; 14 Apr 2014 14:14:01 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 732428.66066.bm@omp1004.access.mail.bf1.yahoo.com Received: (qmail 31021 invoked by uid 60001); 14 Apr 2014 14:14:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1397484841; bh=dfYk+tUeNB5t8URC69zkq1rm8aI1M5TPT296E4xU36s=; 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=DBr9GLTd0DM5gsvYeJnKMmFkFqmKJ8B6axIP7NY6murSFNcn29WMHZEc/15nWD5/Z7MMCdQeNfhegdS2qVnan2nz4INgBgBaQMZVxSjlTO0GvERQpHH5fq3MlXHyiPbfK/9wuetk6oqJOtcCxa6OXkZ/AAU8Svl2jTKwEtyW45g= 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=cM28UIGK4l6oYYjvX8NvQWnJlwTiPW+TpkJXFWFyiU/lQE667z5pmYnssgMX8iwCiGxrcKWxJpgU0owDJ1/wb+4IPQzx7yE0pnnhggYMPQ1ReJfBHPPM68KF6NdMawDPzyyN3qCq+NtSowhj5/mPr4e13zcv146xSpT8A/lgeGA=; X-YMail-OSG: MwaVV2YVM1n60pYfM.ydwrJVEW6hljZHYBT.c.HwO1RHtX_ ly0hEsGCL2w.hDINQR3rl7HWhcIWoEXf2ojgSmmtwVtpTapamfJjr4s7nRFZ 4NRwVLLzIjAezlELs4x.PpjtMvPSouFyiq6d.5rS0gAYzOySwXVg.fAWHntj Nqj4zY.U8OkJWusTwkLR3YNSj6a7b.PQRelRuyQr82TBzNvEbPHzww8AmuYK SI8llhG3c_4SAnrsupbtM2rxtNFLQogSSHtPsPoU0UKC1s6oQxLuXj_3MbU3 XevoYALdFP0l_AxWJF1dZa3KgE_edEFDj5ZVrRzSgotHjW3EZwzngT6CfEsO 31p6lfwZiDKn96hTRO4803bg1AcFpmV7FFOCqd2OH1mGxClkzXUFyfHfO8gO jG8cv5_W7UnRoO0SThmfjViZvDUySWiqDwpjBMhGPUhQVwzL7X5ZGjgAzyn5 dQ44d9RkME_C5bg6D_xpsVZAE.ZYslLxjNT2qpxy7ToPBlsGI_5cVQkikpI. uf5uZq8RI_6Brnvld7jLm_mdKBvdRuugw2gzDwrgPr7Dmsvm8SNRjOnSPV.0 HLpcbHpiTujBAkSVt.FI8QpwfAi9ztihooBQQxjGxOSWv5NypbsPJBwo4pT_ wIlblTzMSyHNvQ.d1WLk5CZjXO3e5nNCBmYLHKOur8n3TCSZeO3f2oIg5bpT zSWOpU9OgmHsTOynPkZRHBiOXZ4b6lsjQlIRa8jJgh8kc5qJQ95Ea552NtUS hkD0odugc9fjuy36c Received: from [99.189.12.49] by web181702.mail.ne1.yahoo.com via HTTP; Mon, 14 Apr 2014 07:14:01 PDT X-Rocket-MIMEInfo: 002.001,SG1tbW0uClNvIHlvdXIgc2F5aW5nIHRoYXQgJ3d3dy5teWNvbXBhbnkuY29tLycKd291bGQgaGF2ZSB0byBsb29rIGxpa2U6CnsiY291Y2hkYiI6IldlbGNvbWUiLCJ1dWlkIjoiNWVmYjY2ZjlkYjU3OGIwZmIwYmZmYzNiZTViNTY2ODIiLCJ2ZXJzaW9uIjoiMS41LjAiLCJ2ZW5kb3IiOnsidmVyc2lvbiI6IjEuNS4wIiwibmFtZSI6IlNvbWVDb21wYW55In19CmJlY2F1YXNlIENvdWNoREIgY2FuJ3Qgc2V0IHVwIGEgcGFnZSB0aGF0IGxvb2tzIGxpa2UgYSBzdGFuZGFyZCBkZWZhdWx0ICJpbmRleC5odG1sIiABMAEBAQE- X-Mailer: YahooMailWebService/0.8.185.657 References: <1397424531.24083.YahooMailNeo@web181703.mail.ne1.yahoo.com> Message-ID: <1397484841.28230.YahooMailNeo@web181702.mail.ne1.yahoo.com> Date: Mon, 14 Apr 2014 07:14:01 -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="-1672125993-1729663126-1397484841=:28230" X-Virus-Checked: Checked by ClamAV on apache.org ---1672125993-1729663126-1397484841=:28230 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hmmmm.=0ASo your saying that 'www.mycompany.com/'=0Awould have to look like= :=0A{"couchdb":"Welcome","uuid":"5efb66f9db578b0fb0bffc3be5b56682","version= ":"1.5.0","vendor":{"version":"1.5.0","name":"SomeCompany"}}=0Abecauase Cou= chDB can't set up a page that looks like a standard default "index.html" ?= =0A=0A=0A=0A=0A=0A=0A________________________________=0A From: Johannes J= =F6rg Schmidt =0ATo: user@couchdb.apache.org =0ASent:= Monday, April 14, 2014 2:57 AM=0ASubject: Re: authentication_redirect is n= ot working.=0A =0A=0ABasically its because CouchDB assumes browsers are req= uesting JSON.=0A=0Ahttps://issues.apache.org/jira/browse/COUCHDB-1175 is no= t resolved, because=0Athe devs were not able to gain consense.=0A=0AGreetin= gs=0AAm 13.04.2014 23:29 schrieb "Scott Weber" := =0A=0A> Lets start with this, because it is almost exactly what I am fighti= ng=0A> with, but it doesn't work for me, like it did appear to work for the= person=0A> how posted this:=0A>=0A>=0A> http://stackoverflow.com/questions= /18966385/couchdb-access-denied-redirect=0A>=0A> The application I am build= ing is open to the public, using CouchDB for=0A> it's authentication, and 1= 00% inside CouchDB with all JS, CSS, HTML as=0A> attachments.=0A>=0A> Logic= ally the uses starts at a login page which has no security, and after=0A> s= uccess login, are redirected to other databases that service page requests= =0A> (which are based on their name, role, etc...)=0A>=0A> When I go direct= ly to a database without logging in, I can't access it.=0A> Which is fine, = except I am getting that rather dry message:=0A>=0A>=0A> {"error":"unauthor= ized","reason":"You are not authorized to access this=0A> db."}=0A> Which i= s really counter intuitive for an application.=0A>=0A> I have set the authe= ntication redirect as describe in the link, to send=0A> them to the login p= age, 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 ---1672125993-1729663126-1397484841=:28230--