fix: Add additional third-party authentication backends and adjust MFA check

This commit is contained in:
wangruidong
2025-07-01 16:33:49 +08:00
committed by 老广
parent 7da74dc6e8
commit 1790cd8345
4 changed files with 16 additions and 2 deletions

View File

@@ -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}