You may want to see my other post about the new policy based DBAPI.

On Monday, 13 May 2019 09:28:11 UTC-7, Jim S wrote:
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e566fd9f-dd15-4225-b3d3-c5852d1c07c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to