I have this.
from this page
http://www.web2py.com/book/default/chapter/08#Access-Control-and-Basic-Authentication
@auth.requires_login()
def stream():
auth.settings.allow_basic_login = True (this is set to False in the
book)
return dict()
Thanks.
David.
my controller is default.py
if request.function == 'stream':
auth.settings.allow_basic_login = True
def stream():
stream = 'http://mystream...'
return dict(stream=stream)
but when I visit
I get the stream url; I would have thought I would have got a Basic
Authentication box.
Perhaps I need to upgrade my version; I am running 1.95.1
I tried this again on Trunk version.
Auth enables login via basic authentication:
1. | auth.settings.allow_basic_login = False |
I see; so I have to configure Apache to pop the auth box and then pass
it to my web2py app.
Sorry I mis-understood what was supposed to happen.
I always was under the impression that if you visited a page that used
basic auth; it would force the borwser to pop a box for authentication.
But this concept is different.
This concept lets you pass user:pa...@doamin.com and provides auth based
on those values.
I need to do the former; so I guess I will revert back to Apache.
Thanks.