feat(auth): let admins keep the login page on OIDC-only instances (#2925)

A new app setting oidc_auto_redirect (default on) is part of the admin form
and the public app config. Off, an instance without password login no longer
sends visitors straight to the IdP: the login page shows its SSO button,
also while the cached config is read. Admin toggle on desktop and phone.
This commit is contained in:
Maurice
2026-11-13 09:35:18 +01:00
parent d5d9428cf2
commit 924b4e0787
45 changed files with 227 additions and 8 deletions
+2
View File
@@ -82,6 +82,8 @@ const admin: TranslationStrings = {
'admin.oidcLoginHint': '允许用户通过 SSO 登录',
'admin.oidcRegistration': 'SSO 自动创建账户',
'admin.oidcRegistrationHint': '为首次通过 SSO 登录的用户自动创建账户',
'admin.oidcAutoRedirect': '直接跳转到 SSO',
'admin.oidcAutoRedirectHint': '关闭密码登录后,访客会被直接带到身份提供商。关闭此项可先显示带有 SSO 按钮的登录页。',
'admin.envOverrideHint': '密码登录设置由 OIDC_ONLY 环境变量控制,无法在此处修改。',
'admin.lockoutWarning': '至少需要保留一种登录方式',
'admin.requireMfa': '要求双因素身份验证(2FA)',