Fran, What is this login_bare that you speak of? The page that you reference, which I had previously read, makes no mention of it, and google seems to know nothing of it.
I assume your example is server-side, if so, where do the username and password come from? And are we talking about the basic auth client encoding that I referenced? Thanks, David On Jul 16, 5:54 am, Fran <[email protected]> wrote: > On Jul 16, 8:18 am, David Watson <[email protected]> wrote: > > > I'm trying to get authentication working for a python client talking > > to a web2py json function. I'm using the @auth.requires_login() > > decorator but I can't seem to get a successful login (works fine from > > the user login web page). > > Don't use @auth.requires_login() decorator with services. > (See this > thread:http://groups.google.com/group/web2py/browse_thread/thread/6c7fe7cb5b...) > > Instead use: > > user = auth.login_bare(username, password) > if not user: > return "authentication failed" > > F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

