mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-15 23:08:20 +00:00
feat: 支持自定义认证 backend;统一其他认证方式的信号触发逻辑;通过配置文件控制
This commit is contained in:
@@ -17,6 +17,8 @@ class CustomAuthBackend(JMSModelBackend):
|
||||
return import_string(self.custom_auth_method_path)
|
||||
|
||||
def is_enabled(self):
|
||||
if not settings.AUTH_CUSTOM:
|
||||
return False
|
||||
try:
|
||||
self.load_authenticate_method()
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user