In the controller

if request.function=='stream':
    auth.settings.allow_basic_login = True

On May 23, 10:23 am, "David J." <[email protected]> wrote:
> I was wondering how I can force basic auth on just one url?
>
> I have this.
>
> from this 
> pagehttp://www.web2py.com/book/default/chapter/08#Access-Control-and-Basi...
>
> @auth.requires_login()
> def stream():
>     auth.settings.allow_basic_login = True (this is set to False in the
> book)
>
>     return dict()
>
> Thanks.
>
> David.

Reply via email to