feat(oidc): add auto-redirect for OIDC
add `auto_redirect_if_standalone_oidc` in `OXICLOUD_AUTH_POLICIES` let admin decide to redirect immediately to IdP if OIDC is the only auth method enabled
This commit is contained in:
@@ -57,6 +57,7 @@ pub async fn create_auth_services(
|
||||
// rather than reaching into the app config on every call.
|
||||
auth_app_service = auth_app_service.with_auth_policy(
|
||||
config.auth.allowed_auth_methods.clone(),
|
||||
config.auth.auth_policies.clone(),
|
||||
config.auth.require_verified_email,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user