Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 99622 invoked from network); 28 Apr 2010 17:34:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Apr 2010 17:34:11 -0000 Received: (qmail 91479 invoked by uid 500); 28 Apr 2010 17:34:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 91427 invoked by uid 500); 28 Apr 2010 17:34:09 -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 91415 invoked by uid 99); 28 Apr 2010 17:34:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Apr 2010 17:34:09 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bharat.kjsce@gmail.com designates 209.85.221.191 as permitted sender) Received: from [209.85.221.191] (HELO mail-qy0-f191.google.com) (209.85.221.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Apr 2010 17:34:01 +0000 Received: by qyk29 with SMTP id 29so1996583qyk.14 for ; Wed, 28 Apr 2010 10:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=ZnTG3isRp6Y9YsCdEr7eZTxqXFdFekGUhlhWyNnbHgA=; b=O17b05IwI/SR93NTdKKB5wYIdPIgSZ0PHS6tNkZJ8X4mCRMyi1tklPoyGpG0n94FWq IHPdN8iDS9PlCY5WW+LKpjxBcAu06bits8kLylCw+TQbZeAzeSPmcvf9kLHM/ZCDo3Yw QyZ9qYK1ZHflbJLnTbq281QhW+cWm7q6ZqWQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=MRfqpSPMNDAF3EswfIlkZmYhqyvkepZIsGRrFofHrqoYcDdp/xVjkFvqA99xsEeCw7 F1yUZZ4MBQ6HALqznr5Yl+OxvLFAzu8WmcnrnQ5eHKaUabAaV8nXMTVgA7SrB71tufHK 9GCDBgImaEmE0w/a6USgIBYeedBMbkmx2tOsc= MIME-Version: 1.0 Received: by 10.229.230.211 with SMTP id jn19mr1819778qcb.56.1272476011985; Wed, 28 Apr 2010 10:33:31 -0700 (PDT) Received: by 10.229.229.66 with HTTP; Wed, 28 Apr 2010 10:33:31 -0700 (PDT) Date: Wed, 28 Apr 2010 10:33:31 -0700 Message-ID: Subject: jcouchdb anyone? From: Bharat To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016363b9048ae83ba04854f6823 X-Virus-Checked: Checked by ClamAV on apache.org --0016363b9048ae83ba04854f6823 Content-Type: text/plain; charset=ISO-8859-1 I am trying to use jcouchdb api for authenticating against my couchdb instance(0.11). I have set the admin usr/pass in futon and in addition specified ADMIN and READER on the DB I am trying to access so only people with correct credentials can access/view the DB. My code is pretty simple and directly using ServerImpl and its setCredentials and get method: ------------------------- ServerImpl service = new ServerImpl("localhost"); Credentials credentials = new UsernamePasswordCredentials(, ); AuthScope authScope = new AuthScope("http://localhost", 5984); service.setCredentials(authScope, credentials); Response res = service.get(/); ----------------------------- But everytime I do this, I keep getting http 401 in my response. Is there something I am missing or not setting correctly? I know its not exactly a couchdb question but there is very little to no documentation available so thought I ll try here. Thanks! --0016363b9048ae83ba04854f6823--