You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by wh...@aol.com on 2010/08/14 03:53:26 UTC

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


 

 


=

Re: authentication and cookie authentication from web form examples

Posted by Matt Cooley <ma...@mattcooley.net>.
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 <ns...@apache.org> 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.
>
>

Re: authentication and cookie authentication from web form examples

Posted by Noah Slater <ns...@apache.org>.
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.


RE: authentication and cookie authentication from web form examples

Posted by Nils Breunese <N....@vpro.nl>.
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.