fix(admin): populate OIDC settings in admin panel from environment variables
- Use load_effective_oidc_config() to get OIDC settings, which applies env var overrides - Use effective.redirect_uri for callback_url instead of calculated value from server_base_url - This ensures the admin panel shows the correct OXICLOUD_OIDC_REDIRECT_URI value
This commit is contained in:
@@ -171,7 +171,7 @@ impl AdminSettingsService {
|
|||||||
admin_groups: effective.admin_groups,
|
admin_groups: effective.admin_groups,
|
||||||
disable_password_login: effective.disable_password_login,
|
disable_password_login: effective.disable_password_login,
|
||||||
provider_name: effective.provider_name,
|
provider_name: effective.provider_name,
|
||||||
callback_url: self.callback_url(),
|
callback_url: effective.redirect_uri.clone(),
|
||||||
env_overrides: self.get_env_overrides(),
|
env_overrides: self.get_env_overrides(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user