Currently I'm trying to create a service for my application as follows:
auth.settings.allow_basic_login = True
@auth.requires_login()
def test():
from gluon.serializers import json
return json((auth.user, 'hello'))
But I've tried to do authentication using the browser as follows:
https://[email protected]:[email protected]/api/test.json
(which of course seems broken since @ doesn't seem valid)
So I tried the scaped version:
https://user%40domain.com:[email protected]/api/test.json
but still, I'm being redirected to the login URL, like if basic auth had no
effect.
--
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].
For more options, visit https://groups.google.com/d/optout.