This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
15 lines
358 B
Python
15 lines
358 B
Python
"""
|
|
Exceptions for SAML Authentication.
|
|
"""
|
|
|
|
|
|
from social_core.exceptions import AuthException
|
|
|
|
|
|
class IncorrectConfigurationException(AuthException):
|
|
"""
|
|
Error caused due to incorrect configuration.
|
|
"""
|
|
def __str__(self):
|
|
return 'There was an error in SAML authentication flow which might be caused by incorrect SAML configuration.'
|