mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-29 21:51:31 +00:00
fix: Add additional third-party authentication backends and adjust MFA check
This commit is contained in:
@@ -107,3 +107,7 @@ class SourceMixin:
|
||||
if not settings.ONLY_ALLOW_AUTH_FROM_SOURCE:
|
||||
return None
|
||||
return self.SOURCE_BACKEND_MAPPING.get(self.source, [])
|
||||
|
||||
@property
|
||||
def backends_source_mapper(self):
|
||||
return {backend: source for source, backends in self.SOURCE_BACKEND_MAPPING.items() for backend in backends}
|
||||
|
||||
Reference in New Issue
Block a user