Fixed auth flow for KEYWARDEN_AUTH_MODE, native; oidc; hybrid work as intended. no login page for OIDC mode, assumes internal IdP for now. will fix when social login implemented

This commit is contained in:
boris committed 2026-03-30 14:36:28 +01:00
1 parent 68bbb53976
commit ea7470231f
5 files changed
+75 -32

No files matched your search

+7
View File
@@ -61,6 +61,13 @@ class KeywardenSocialAccountAdapter(DefaultSocialAccountAdapter):
if user:
sociallogin.connect(request, user)
self._sync_identity(user, sociallogin)
return
if not getattr(settings, "KEYWARDEN_SOCIAL_ALLOW_AUTO_ONBOARDING", False):
self._reject(
request,
"Social auto-onboarding is disabled. Ask an administrator to create/link your account.",
)
def populate_user(self, request, sociallogin, data):
user = super().populate_user(request, sociallogin, data)