Skip to content

Commit 5738ddb

Browse files
committed
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
1 parent e2a2026 commit 5738ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/application/services/admin_settings_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl AdminSettingsService {
171171
admin_groups: effective.admin_groups,
172172
disable_password_login: effective.disable_password_login,
173173
provider_name: effective.provider_name,
174-
callback_url: self.callback_url(),
174+
callback_url: effective.redirect_uri.clone(),
175175
env_overrides: self.get_env_overrides(),
176176
})
177177
}

0 commit comments

Comments
 (0)