auth.settings.allow_basic_login=True

On Jun 21, 4:23 am, Sven <[email protected]> wrote:
> Hello!
>
> Reading the entries in this group related to authentification brought
> no solution for this problem:
>
> This is my controller:
> @auth.requires_login()
> def demo():
>     return dict(msg='Hello World')
>
> Calling it with curl does just a redirect:
> curl -u 
> [email protected]:passwordhttp://127.0.0.1:8000/authdemo/default/demo.json
> You are being redirected <a href="/authdemo/default/user/login?_next=/
> authdemo/default/demo">here</a>
>
> Same with this syntax:
> curl -u 
> http://user%40domain.de:[email protected]:8000/authdemo/default/demo.json
> You are being redirected <a href="/authdemo/default/user/login?_next=/
> authdemo/default/demo">here</a>
>
> How do I use services with basic authentication? In the end I would
> like to use web2py as json backend for a frontend build with sencha

Reply via email to