Skip to content

Commit

Permalink
fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fang.li committed Apr 12, 2016
1 parent 9c446ce commit 3f4e748
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ otherwise redirect the user to the last visited page.
How to use?
===========

1. Override the default login page in root urls.py, by adding these lines **BEFORE** any `urlpatterns`:
- Override the default login page in root urls.py, by adding these lines **BEFORE** any `urlpatterns`:

.. code-block:: python
Expand All @@ -65,7 +65,16 @@ How to use?
# If you want to replace the admin login with SAML2, use the following line (optional)
url(r'^admin/login/$', 'django_saml2_auth.views.signin'),
2. In settings.py, add SAML2 related configuration.
- Add 'django_saml2_auth' to INSTALLED_APPS

.. code-block:: python
INSTALLED_APPS = [
'...',
'django_saml2_auth',
]
- In settings.py, add SAML2 related configuration.

Please note only METADATA_AUTO_CONF_URL is required. The following block just shows the full featured configuration and their default values.

Expand Down

0 comments on commit 3f4e748

Please sign in to comment.