fix: 修复saml2 auth

pull/7830/head
feng626 2022-03-14 11:11:25 +08:00 committed by 老广
parent 90d84f4d69
commit ca5708988a
1 changed files with 2 additions and 2 deletions

View File

@ -10,14 +10,14 @@ from .signals import (
saml2_user_authenticated, saml2_user_authentication_failed, saml2_user_authenticated, saml2_user_authentication_failed,
saml2_create_or_update_user saml2_create_or_update_user
) )
from ..base import JMSBaseAuthBackend from ..base import JMSModelBackend
__all__ = ['SAML2Backend'] __all__ = ['SAML2Backend']
logger = get_logger(__file__) logger = get_logger(__file__)
class SAML2Backend(JMSBaseAuthBackend): class SAML2Backend(JMSModelBackend):
@staticmethod @staticmethod
def is_enabled(): def is_enabled():
return settings.AUTH_SAML2 return settings.AUTH_SAML2