fix: the silent attempt calls the real start path, /api/auth/oidc
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dv6sqaY6Vq3ChZHMem3cnU
This commit is contained in:
parent
18f7651362
commit
cd2ee9192a
2 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ machinery that remains behind the switch.
|
|||
## Signed in at PedsHub means signed in here
|
||||
|
||||
A visitor with no session here is not shown the sign-in page straight away.
|
||||
The page first asks the provider silently (`/api/auth/oidc/login?silent=1`,
|
||||
The page first asks the provider silently (`/api/auth/oidc?silent=1`,
|
||||
which adds `prompt=none`): someone already signed in at sso.pedshub.com — from
|
||||
the quiz app, say, following a deck link — arrives signed in without a click,
|
||||
the way a Kerberos ticket carries across services. Someone not signed in there
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
sessionStorage.setItem('ped_sso_silent', '1');
|
||||
if (window.location.hash) sessionStorage.setItem('ped_pending_hash', window.location.hash);
|
||||
} catch (e) {}
|
||||
window.location.replace('/api/auth/oidc/login?silent=1');
|
||||
window.location.replace('/api/auth/oidc?silent=1');
|
||||
}).catch(function() { showAuthScreen(); });
|
||||
}
|
||||
function restorePendingHash() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue