diff --git a/ui/src/auth/OidcCallback.tsx b/ui/src/auth/OidcCallback.tsx index 091a6438..e74bec4c 100644 --- a/ui/src/auth/OidcCallback.tsx +++ b/ui/src/auth/OidcCallback.tsx @@ -20,11 +20,6 @@ export function OidcCallback() { const errorParam = params.get('error'); if (errorParam) { - // prompt=none failed — no session, fall back to login form - if (errorParam === 'login_required' || errorParam === 'interaction_required') { - window.location.replace(`${config.basePath}login?local`); - return; - } // consent_required — retry without prompt=none so user can grant scopes if (errorParam === 'consent_required' && !sessionStorage.getItem('oidc-consent-retry')) { sessionStorage.setItem('oidc-consent-retry', '1'); @@ -43,7 +38,7 @@ export function OidcCallback() { window.location.href = `${data.authorizationEndpoint}?${p}`; } }).catch(() => { - window.location.replace(`${config.basePath}login?local`); + useAuthStore.setState({ error: 'OIDC consent retry failed.', loading: false }); }); return; } @@ -77,7 +72,7 @@ export function OidcCallback() { {error && ( <> {error} -