couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Jörg Schmidt <schm...@netzmerk.com>
Subject Re: authentication_redirect is not working.
Date Mon, 14 Apr 2014 07:57:43 GMT
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" <scotty2541@sbcglobal.net>:

> 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-redirect
>
> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message