Skip to content

Commit

Permalink
documentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Apr 26, 2015
1 parent e63b7ab commit 5c98ed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ Digest authentication example
if __name__ == '__main__':
app.run()

WSGI Considerations
-------------------

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)

Resources
---------

Expand Down
9 changes: 3 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,10 @@ The following example is similar to the previous one, but HTTP Digest authentica

Note that because digest authentication stores data in Flask's ``session`` object the configuration must have a ``SECRET_KEY`` set.

WSGI Considerations
-------------------
Deployment Considerations
-------------------------

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/>`_.
Be aware that some web servers do not pass the ``Authorization`` headers to the WSGI application by default. For example, if you use Apache with mod_wsgi, you have to set option ``WSGIPassAuthorization On`` as `documented here <https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization/>`_.

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

0 comments on commit 5c98ed8

Please sign in to comment.