fix: the silent attempt calls the real start path, /api/auth/oidc
All checks were successful
Forgejo Docker Build / Root app tests (push) Successful in 58s
Forgejo Docker Build / Build Docker image (push) Successful in 15s
Forgejo Docker Build / End-to-end (browser) (push) Successful in 6s

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dv6sqaY6Vq3ChZHMem3cnU
This commit is contained in:
Daniel 2026-09-13 17:06:27 +02:00
parent 18f7651362
commit cd2ee9192a
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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() {