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://...',
# whether or not to include a next=<url> query argument
'IDP_ERROR_REDIRECT_NEXT': True,
}
Metadata
Release files for django-saml2-auth-idperror-redirect 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_saml2_auth_idperror_redirect-0.0.2.tar.gz | 3.3 kB | Without provenance | Details for django_saml2_auth_idperror_redirect-0.0.2.tar.gz |
Release files / django_saml2_auth_idperror_redirect-0.0.2.tar.gz
| Download URL | django_saml2_auth_idperror_redirect-0.0.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cabeae53970ab077afef8ca59bb619e56f18c43238dd6bc1ff61d2b76d79342
|
|
BLAKE2b-256 checksum How to use checksums |
a432be1079cbad29f6757e872e788aa558040e752bccc0f7d6cb7bc8606a658a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
|
Security for django-saml2-auth-idperror-redirect 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.