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 158DB11DDF for ; Fri, 16 May 2014 23:27:21 +0000 (UTC) Received: (qmail 30268 invoked by uid 500); 16 May 2014 11:54:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 48179 invoked by uid 500); 16 May 2014 11:45:34 -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 16618 invoked by uid 99); 16 May 2014 11:24:40 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 11:24:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jens@couchbase.com designates 199.193.200.197 as permitted sender) Received: from [199.193.200.197] (HELO hub029-VA-6.exch029.serverdata.net) (199.193.200.197) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 00:03:23 +0000 Received: from [10.17.35.250] (12.218.209.66) by east.exch029.serverdata.net (10.216.105.231) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 15 May 2014 17:03:00 -0700 Content-Type: text/plain; charset="windows-1252" MIME-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: authentication issues From: Jens Alfke In-Reply-To: Date: Thu, 15 May 2014 17:02:52 -0700 Content-Transfer-Encoding: quoted-printable Message-ID: References: To: X-Mailer: Apple Mail (2.1878.2) X-Virus-Checked: Checked by ClamAV on apache.org On May 14, 2014, at 7:36 AM, Will Holcomb wrote: > I have a couch server running and I am attempting to access it from a = web > application server from port 80. I am having difficulty = authenticating. CouchDB doesn=92t send a WWW-Authenticate header in the response when it = returns a 401 status. There was some reason for doing this (having to do = with clients accessing CouchDB from a web browser?) but it=92s = nonstandard and it really messes up a lot of HTTP client libraries. The workaround is to edit your CouchDB config and add a new variable to = the =91httpd=92 section, whose key is =93WWW-Authenticate=94 and value = is something like Basic realm=3D=93CouchDB" And it gets worse! You have to do this workaround *every time CouchDB = starts up* because it fails to persist the changed config properly =97 = after relaunch the key will have changed to =93www-authenticate=94 which = doesn=92t work. Yes, I filed a bug on this. It=92s really annoying. =97Jens=