fix(launcher): point app tiles at /dashboard so AuthGuard fires #47
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
psa-systems/bunyip!47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/launcher-tile-to-dashboard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The two launcher tile templates in dashboard.rs (the dashboard top tiles
and the /applications grid) built href="https://{subdomain}.{base_domain}",
which lands on the child SPA's root - a public Home route in mokosh-apps
that AuthGuard doesn't gate. With no AuthGuard, the SPA never starts the
OIDC code+PKCE flow, so a member clicking 'Open Mokosh' sees the public
homepage instead of being signed in to the dashboard.
Append /dashboard to both hrefs. AuthGuard fires on the protected route,
notices no local session, calls start_login(cfg, ""), navigates to
bunyip-api's /oauth2/authorize, and the chain completes (assuming the
user has a bunyip session; otherwise they bounce through /login first).
Hardcoded landing path for now. A landing_path column on applications can
follow if first-party apps ever need different post-tile targets.