October 2018
Intermediate to advanced
332 pages
8h 9m
English
We can, with some intranet setups, use single sign-on authentication methods, where the web servers do all the heavy lifting related with security. This can be done using IIS integrated windows authentication or Apache mod_auth_sspi, Apache Samba, or others. The setup is beyond the scope of this book.
With this kind of authentication method, the web server will pass the already authenticated username as an environment key to the WSGI (web server gateway interface), so we just have to fetch it using the following:
username = request.environ.get( ...