Metadata-Version: 2.1
Name: django-saml2-auth-idperror-redirect
Version: 0.0.2
Summary: Django SAML2 Plugin for URL redirection on IDP Error (usually to an IdP login)
Home-page: https://github.com/ambsw/django-saml2-auth-idperror-redirect
Author: Clayton Daley
Author-email: technology+saml2_idperror_redirect@gmail.com
License: Apache 2.0
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://...',
                # whether or not to include a next=<url> query argument
                'IDP_ERROR_REDIRECT_NEXT': True,
            }
        
Keywords: Django SAML2 IDP Error Redirection Plugin
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Framework :: Django :: 1.5
Classifier: Framework :: Django :: 1.6
Classifier: Framework :: Django :: 1.7
Classifier: Framework :: Django :: 1.8
Classifier: Framework :: Django :: 1.9
Classifier: Framework :: Django :: 1.10
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
