I’m new to python . I want to make a basic auth in a web project , is there any way get HTTP authentication variables like the ‘$_SERVER[‘php_auth_user’]’ in php ?
I’m using the FF’s torando server.
I’m new to python . I want to make a basic auth in a
Share
There doesn’t seem to be any particular support for Basic auth in Tornado, so you’d have to do it yourself by base64-decoding the
Authorizationheader.Probably something like:
(not tested as I don’t run Tornado.)