Django SAML2 Plugin for URL redirection on IDP Error (usually to an IdP login)
Project description
django-saml2-auth-idperror-redirect
A plugin to redirect users to a URL (usually the login page) in response to an authentication error in
django-saml2-auth
.
Introduction
By default, django-saml2-auth
redirects users to the :denied
page in response to authentication errors.
django-saml2-auth-idperror-redirect
will instead redirect the user to another URL (or view), usually the
login page.
Example
In settings.py:
INSTALLED_APPS += (
...
'django_saml2_auth',
# ensure the plugin is loaded
'django_saml2_auth_idperror_redirect',
...
)
# this is the "usual" config object from django-saml2-auth
SAML2_AUTH = {
'DEFAULT_NEXT_URL': '/',
'PLUGINS': {
# use this package in lieu of DEFAULT IDP Error plugin
'IDP_ERROR': ['REDIRECT'],
},
# must provide a URL or VIEW
'IDP_ERROR_REDIRECT_VIEW': 'login',
'IDP_ERROR_REDIRECT_URL': 'https://...',
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django_saml2_auth_idperror_redirect-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aedf96566cfe763c08572994a95b19689bed02653d5cacd69c29b4df35538750 |
|
MD5 | c682108b943a2769a9f72bae08469b78 |
|
BLAKE2b-256 | c625ab9f2d2b2cf0bb122a482258bc898063d8e9dd6b8716b0ca992efa987c62 |