Browse Source

fix: 修复saml2 auth

pull/7830/head
feng626 3 years ago committed by 老广
parent
commit
ca5708988a
  1. 4
      apps/authentication/backends/saml2/backends.py

4
apps/authentication/backends/saml2/backends.py

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

Loading…
Cancel
Save