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/6c7fe7cb5b844072) 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 -~----------~----~----~----~------~----~------~--~---

