Skip to content

Commit

Permalink
Include notes for nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-stephens committed Apr 18, 2015
1 parent 5bccbae commit ed8b4a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ Note that because digest authentication stores data in Flask's ``session`` objec
WSGI Considerations
-------------------

Make sure to set `WSGIPassAuthorization On` as `documented here <https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization/>`_ to prevent the frontend web server from consuming the authorization header.
Make sure that the authorization headers are passed through to your application. Otherwise, your callbacks will have empty values for the user & password. Here are the directives needed for the following web servers.

- Apache: set ``WSGIPassAuthorization On`` as `documented here <https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization/>`_.
- Nginx: set ``wsgi_pass_authorization on`` as `documented here <http://wiki.nginx.org/NgxWSGIModule/>`_.

API Documentation
-----------------
Expand Down

0 comments on commit ed8b4a3

Please sign in to comment.