incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Weber <>
Subject Re: authentication_redirect is not working.
Date Mon, 14 Apr 2014 14:14:01 GMT
So your saying that ''
would have to look like:
becauase CouchDB can't set up a page that looks like a standard default "index.html" ?

 From: Johannes Jörg Schmidt <>
Sent: Monday, April 14, 2014 2:57 AM
Subject: Re: authentication_redirect is not working.

Basically its because CouchDB assumes browsers are requesting JSON. is not resolved, because
the devs were not able to gain consense.

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:
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message