You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Derrick Oswald <de...@gmail.com> on 2014/08/16 15:08:56 UTC

proxy basic auth issue

Hi,

I've successfully added a couple of proxies to the [httpd_global_handlers]
configuration. One of them uses basic auth. To get that one to work though,
I have to remove the default_authentication_handler from the list of
authentication_handlers in the [httpd] configuration. Otherwise, the
Authorization:Basic header is incorrectly rejected (401 Unauthorized)
despite couchdb being in Admin Party! mode and the request never gets to be
proxied.

The trouble is, without the default_authentication_handler, document
updates (using erica for example) fail with the message
{"error":"unauthorized","reason":"You are not a db or server admin."}. So I
guess the default_authentication_handler has to be included.

Is there a mechanism for the default_authentication_handler to ignore the
Authorization:Basic header for proxied URLs?
Or put another way, has anyone had success with authenticated proxied
servers in couchdb?