Reviving this thread from before... I would like to have a shell
script use wget to authenticate itself and access the data in a web2py
application, but I haven't been able to get the web2py app to accept
the post'ed email and password information, which I sent to the user/
login URL. Is this the right way to do it?

I see some passing references to alternate authorization methods in
the documentation and the code, but I haven't been able to get much
detail on what those might be. For example-

http://mdp.cti.depaul.edu/examples/default/tools#authentication :
"The Auth calls can be extended, personalized, and replaced by other
authentication mechanisms which expose a similar interface."

and in 
http://mdp.cti.depaul.edu/examples/static/epydoc/web2py.gluon.tools-pysrc.html#Auth.login
:
 644              if not user:
 645                  ## try alternate login methods
 646                  for login_method in
self.settings.login_methods:
 647                      if login_method != self and \
 648                              login_method(request.vars
[username],
 649
request.vars.password):
 650                          user = self.get_or_create_user
(form.vars)


Is there a place where I can find out more about what already exists,
or how to go about getting something like what the original message in
this thread described?

Dan


On May 17, 8:22 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> I need to look into this. I do not think there can be a generic
> approach. Each protocol has its own quirks and some do not handle
> session or authenication.
>
> Massimo
>
> On May 17, 8:14 pm, jcorbett <jasoncorb...@gmail.com> wrote:
>
> > I love the service framework, however I am interested in being able to
> > authenticate users.  With json/jsonrpcthis shouldn't be too hard as
> > the browser that the ajax request would come from would have the same
> > session.
>
> > Particularly I am concerned with writing an xmlrpc service that
> > requires authentication.  TheAuthclass doesn't seem to expose any of
> > the lower level logic for authentication (like a login function that
> > takes a username and a password).  Any ideas on how I can do this.
> > I'm not afraid of writing my own implimentation, however I would love
> > to piggy back off what is already there.
>
> > I would figure I would want to have a login function that would create
> > a session key (limited lifetime), and each function would be required
> > to provide that key.
>
> > Any ideas would be appreciated.
>
> > Jason Corbett
> > BTW I love the simplicity of web2py, it took me maybe 2-3 hours to
> > write a simple app that was even themed.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to