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 2DB0311D06 for ; Mon, 14 Apr 2014 14:23:48 +0000 (UTC) Received: (qmail 61473 invoked by uid 500); 14 Apr 2014 14:23:36 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 61341 invoked by uid 500); 14 Apr 2014 14:23:36 -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 61333 invoked by uid 99); 14 Apr 2014 14:23:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 14:23:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qc0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 14:23:32 +0000 Received: by mail-qc0-f176.google.com with SMTP id m20so8716458qcx.21 for ; Mon, 14 Apr 2014 07:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=tcU84OeCaqmlDeYE2Hwv1OUgmoMbKH++5hLw/aISMvg=; b=yP7NXc/iFyaH6HqQPzWQyUZBgpoNd2HgjmKVo2/0PZe4QBfVCbbPpqS805CSfdS5Q9 UL7rFRBup5vh42jLl8H9vyEsRmF4keVUrznzEu9LdvZdveS9X03oy/l+HCNHQgLQ/YwO LhYU6xc2Kk05cNKeprcTWawqSpz4qyLE+jNGaXcAvNd2Btjl4p/7S37LkmJcTq/x1M14 l0bo3OU7abfYFNGsFMivjNT14AcITjnXXJTun063Fwha2oh4WPpfq8TtRR9AyNvOMshX AlXc1n+czn9hE5Sv/kDXVCzCUhbUuFT8G/O6tWZj7NJ4MRZc2jW20/uRbqJK2O/ZMJU+ /i5g== X-Received: by 10.140.29.6 with SMTP id a6mr48069482qga.57.1397485391595; Mon, 14 Apr 2014 07:23:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.30.230 with HTTP; Mon, 14 Apr 2014 07:22:51 -0700 (PDT) In-Reply-To: <1397484841.28230.YahooMailNeo@web181702.mail.ne1.yahoo.com> References: <1397424531.24083.YahooMailNeo@web181703.mail.ne1.yahoo.com> <1397484841.28230.YahooMailNeo@web181702.mail.ne1.yahoo.com> From: Benoit Chesneau Date: Mon, 14 Apr 2014 16:22:51 +0200 Message-ID: Subject: Re: authentication_redirect is not working. To: "user@couchdb.apache.org" , Scott Weber Content-Type: multipart/alternative; boundary=001a113a42c6584f9e04f7016ce4 X-Virus-Checked: Checked by ClamAV on apache.org --001a113a42c6584f9e04f7016ce4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Apr 14, 2014 at 4:14 PM, Scott Weber wrot= e: > Hmmmm. > So your saying that 'www.mycompany.com/' > would have to look like: > > {"couchdb":"Welcome","uuid":"5efb66f9db578b0fb0bffc3be5b56682","version":= "1.5.0","vendor":{"version":"1.5.0","name":"SomeCompany"}} > becauase CouchDB can't set up a page that looks like a standard default > "index.html" ? > > You can use the vhost feature + redirect to redirect / to a page in a doc or a ddoc. - benoit > > > > > > ________________________________ > From: Johannes J=C3=B6rg Schmidt > To: user@couchdb.apache.org > Sent: Monday, April 14, 2014 2:57 AM > Subject: Re: authentication_redirect is not working. > > > Basically its because CouchDB assumes browsers are requesting JSON. > > https://issues.apache.org/jira/browse/COUCHDB-1175 is not resolved, > because > the devs were not able to gain consense. > > Greetings > Am 13.04.2014 23:29 schrieb "Scott Weber" : > > > Lets start with this, because it is almost exactly what I am fighting > > with, but it doesn't work for me, like it did appear to work for the > person > > how posted this: > > > > > > > http://stackoverflow.com/questions/18966385/couchdb-access-denied-redirec= t > > > > The application I am building is open to the public, using CouchDB for > > it's authentication, and 100% inside CouchDB with all JS, CSS, HTML as > > attachments. > > > > Logically the uses starts at a login page which has no security, and > after > > success login, are redirected to other databases that service page > requests > > (which are based on their name, role, etc...) > > > > When I go directly to a database without logging in, I can't access it. > > Which is fine, except I am getting that rather dry message: > > > > > > {"error":"unauthorized","reason":"You are not authorized to access this > > db."} > > Which is really counter intuitive for an application. > > > > I have set the authentication redirect as describe in the link, to send > > them to the login page, but nothing happens. I still get the above dry > > message. > > > > This is on both IE and FF. > > > > Any idea how to get an acceptable page? > > > > > > -Scott > --001a113a42c6584f9e04f7016ce4--