mirror of https://github.com/jumpserver/jumpserver
fix: 修复企业微信,钉钉登录 BACKEND 没有注册
parent
8010bdecea
commit
c9b6b9a37a
|
@ -132,7 +132,9 @@ AUTH_BACKEND_WECOM = 'authentication.backends.api.WeComAuthentication'
|
|||
AUTH_BACKEND_DINGTALK = 'authentication.backends.api.DingTalkAuthentication'
|
||||
|
||||
|
||||
AUTHENTICATION_BACKENDS = [AUTH_BACKEND_MODEL, AUTH_BACKEND_PUBKEY]
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
AUTH_BACKEND_MODEL, AUTH_BACKEND_PUBKEY, AUTH_BACKEND_WECOM, AUTH_BACKEND_DINGTALK
|
||||
]
|
||||
|
||||
if AUTH_CAS:
|
||||
AUTHENTICATION_BACKENDS.insert(0, AUTH_BACKEND_CAS)
|
||||
|
@ -143,10 +145,6 @@ if AUTH_RADIUS:
|
|||
AUTHENTICATION_BACKENDS.insert(0, AUTH_BACKEND_RADIUS)
|
||||
if AUTH_SSO:
|
||||
AUTHENTICATION_BACKENDS.append(AUTH_BACKEND_SSO)
|
||||
if AUTH_WECOM:
|
||||
AUTHENTICATION_BACKENDS.append(AUTH_BACKEND_WECOM)
|
||||
if AUTH_DINGTALK:
|
||||
AUTHENTICATION_BACKENDS.append(AUTH_BACKEND_DINGTALK)
|
||||
|
||||
|
||||
ONLY_ALLOW_EXIST_USER_AUTH = CONFIG.ONLY_ALLOW_EXIST_USER_AUTH
|
||||
|
|
Loading…
Reference in New Issue