Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 42442 invoked from network); 15 Aug 2010 22:23:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Aug 2010 22:23:10 -0000 Received: (qmail 10373 invoked by uid 500); 15 Aug 2010 22:23:08 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 10335 invoked by uid 500); 15 Aug 2010 22:23:08 -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 10327 invoked by uid 99); 15 Aug 2010 22:23:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Aug 2010 22:23:08 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.52] (HELO mail-qw0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Aug 2010 22:23:00 +0000 Received: by qwj8 with SMTP id 8so6046498qwj.11 for ; Sun, 15 Aug 2010 15:22:38 -0700 (PDT) Received: by 10.229.51.197 with SMTP id e5mr2000qcg.234.1281910958758; Sun, 15 Aug 2010 15:22:38 -0700 (PDT) Received: from mail-vw0-f52.google.com (mail-vw0-f52.google.com [209.85.212.52]) by mx.google.com with ESMTPS id r38sm6520566qcs.2.2010.08.15.15.22.36 (version=SSLv3 cipher=RC4-MD5); Sun, 15 Aug 2010 15:22:37 -0700 (PDT) Received: by vws14 with SMTP id 14so4192402vws.11 for ; Sun, 15 Aug 2010 15:22:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.60.70 with SMTP id o6mr2660626vch.142.1281910955769; Sun, 15 Aug 2010 15:22:35 -0700 (PDT) Received: by 10.220.189.193 with HTTP; Sun, 15 Aug 2010 15:22:35 -0700 (PDT) In-Reply-To: References: <8CD096A9EE1ED8E-2078-5A4E@webmail-d071.sysops.aol.com> Date: Sun, 15 Aug 2010 17:22:35 -0500 Message-ID: Subject: Re: authentication and cookie authentication from web form examples From: Matt Cooley To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=e0cb4e887f572702cc048de427af X-Virus-Checked: Checked by ClamAV on apache.org --e0cb4e887f572702cc048de427af Content-Type: text/plain; charset=ISO-8859-1 I don't have a CouchDB instance available at the moment, but I think something like the following gist is what you're looking for. http://gist.github.com/526014 The problem I ran into is that if the login fails, the user is stuck looking at a raw JSON response. There's no way around this without JavaScript, but it's trivial to allow the specification of a redirect on failure: see https://issues.apache.org/jira/browse/COUCHDB-846 On Sat, Aug 14, 2010 at 6:45 AM, Noah Slater wrote: > If you do manage to find an example in HTML, or work one out for yourself, > please copy it to the wiki. Remember that we're all learners on a project > like this, so if you figure something out, you should share it with the > group. It may be the case that you're the first person to want to see this > enough to actually write it up. It would be great to get the results of that > effort, so we can share it with other new users in the future. > > On 14 Aug 2010, at 11:00, Nils Breunese wrote: > > > I guess you could just look at the Futon source and just copy what it's > doing? AFAIK Futon is just HTML and JavaScript. > > > > Nils. > > ________________________________________ > > Van: whimsica@aol.com [whimsica@aol.com] > > Verzonden: zaterdag 14 augustus 2010 3:53 > > Aan: user@couchdb.apache.org > > Onderwerp: authentication and cookie authentication from web form > examples > > > > I would like to see some examples of a html form sending > > register, login, forgot password etc to couchdb database and how > > the results are processed from a html page. > > > > I have read the wiki and the definitive guide but neither really have an > example in html. > > One is in curl and one seems to be from futon. > > > > I can't make the leap from curl or futon to a real webpage with html. > > Dan > > > > > > > > > > > > > > > > = > > > > De informatie vervat in deze e-mail en meegezonden bijlagen is > uitsluitend bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke > informatie bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of > verstrekking van deze informatie aan derden is voorbehouden aan > geadresseerde. De VPRO staat niet in voor de juiste en volledige > overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige > ontvangst daarvan. > > --e0cb4e887f572702cc048de427af--