Hi

I'm setting up a REST service that requires authentication.  I'm following 
the example here:

http://web2py.com/books/default/chapter/29/10/services#Access-Control

Here is the example with basic login:

auth.settings.allow_basic_login = True

@auth.requires_login()
@request.restful()
def api(): 
    def GET(s):
        return 'access granted, you said %s' % s 
return locals()

However, I'd like to use email authentication instead of basic_login.  

When I remove the first line, and pass proper email address and password, I 
get a 403 return code.

Anyone had success with a RESTful service using email authentication?

-Jim

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8a2ef851-6957-42ba-ac0b-af718e57ef75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to