mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 05:21:15 +00:00
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:
@@ -449,6 +449,8 @@ export interface AppConfig {
|
||||
password_registration?: boolean
|
||||
oidc_login?: boolean
|
||||
oidc_registration?: boolean
|
||||
/** Whether an instance without password login sends visitors straight to the IdP */
|
||||
oidc_auto_redirect?: boolean
|
||||
env_override_oidc_only?: boolean
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user