Standalone → hub SSO: token handoff for cross-origin nav back to launcher #48
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 hub → standalone direction already does a
?token=...query handoff (Hub.vue:64-67, server-validated viatryAdoptTokenper #36). The reverse direction (standalone → hub) currently doesn't.On subdomain deployments (
<app>.${domain}→app.${domain}), the standalone and hub are different origins. If the hub later becomes auth-required (or surfaces auth-gated content like notification counts on the tiles per #32), navigating from a standalone to the hub via the<HubPill>would land logged-out unless cookies are set on the wildcard*.${domain}parent — which they currently aren't.On path-mount deployments (
app.${domain}/<app>/), this is a non-issue (same origin, same cookies/localStorage).Scope
*.${domain}(one-time nginx + LNbits config change) or (b) bidirectional?token=...handoff so the standalone appends a token to the<HubPill>href when the user is authenticated.Hub.vuepattern so behavior is symmetric.Why now
Surfaced while planning the unified bottom-nav refactor (the
<HubPill>is the trigger for this concern).Depends on
<HubPill>lives there).Acceptance
<HubPill>click on a subdomain-deployed standalone, the user lands on the hub already authenticated (no re-login).docs/.