I thought the same;

Perhaps that should be changed.

However; one thing I got confused was that

web2py handles basic auth via sending 'username:[email protected]'

Which is Fine; But Massimo pointed out something I was trying to do that is not really the way it works.

Currently I have an App running on Tomcat; It uses Basic Auth with Mysql Backend to give access to a streaming server.

While trying to port the App; I wanted when a user visits http://www.mydomain.com/podcast the "Basic Auth" dialog would pop up in the browser.

But this is different than the way the App actually handles the authentication.

What Massimo pointed it out is the handling of Basic Auth in a URL vs calling Auth values from a form.

Any ideas on how to do the former would be appreciated.

Thanks.


On 5/23/11 11:45 AM, pbreit wrote:
The book says:

*Auth* enables login via basic authentication:

1.
        
auth.settings.allow_basic_login  =False


Shouldn't that be "True" to enable?

And then, why wouldn't this work:

auth.settings.allow_basic_login = True

@auth.requires_login()
def stream():
    return dict()

Reply via email to