mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-15 14:47:24 +00:00
* perf: 优化 suggesstion * perf: 修改 migrations * feat: 添加OIDC认证逻辑 * perf: 修改 backend * perf: 优化认证backends * perf: 优化认证backends * perf: 优化CAS认证, 用户多域名进行访问时回调到各自域名 Co-authored-by: ibuler <ibuler@qq.com>
64 lines
1.1 KiB
Python
64 lines
1.1 KiB
Python
from django.conf import settings
|
|
|
|
from .base import JMSBaseAuthBackend
|
|
|
|
|
|
class SSOAuthentication(JMSBaseAuthBackend):
|
|
"""
|
|
什么也不做呀😺
|
|
"""
|
|
|
|
@staticmethod
|
|
def is_enabled():
|
|
return settings.AUTH_SSO
|
|
|
|
def authenticate(self, request, sso_token=None, **kwargs):
|
|
pass
|
|
|
|
|
|
class WeComAuthentication(JMSBaseAuthBackend):
|
|
"""
|
|
什么也不做呀😺
|
|
"""
|
|
|
|
@staticmethod
|
|
def is_enabled():
|
|
return settings.AUTH_WECOM
|
|
|
|
def authenticate(self, request, **kwargs):
|
|
pass
|
|
|
|
|
|
class DingTalkAuthentication(JMSBaseAuthBackend):
|
|
"""
|
|
什么也不做呀😺
|
|
"""
|
|
|
|
@staticmethod
|
|
def is_enabled():
|
|
return settings.AUTH_DINGTALK
|
|
|
|
def authenticate(self, request, **kwargs):
|
|
pass
|
|
|
|
|
|
class FeiShuAuthentication(JMSBaseAuthBackend):
|
|
"""
|
|
什么也不做呀😺
|
|
"""
|
|
|
|
@staticmethod
|
|
def is_enabled():
|
|
return settings.AUTH_FEISHU
|
|
|
|
def authenticate(self, request, **kwargs):
|
|
pass
|
|
|
|
|
|
class AuthorizationTokenAuthentication(JMSBaseAuthBackend):
|
|
"""
|
|
什么也不做呀😺
|
|
"""
|
|
def authenticate(self, request, **kwargs):
|
|
pass
|