bug: the app-door "new code" keeps a sign-in the gate already abandoned (10 min flowTTL): the member scans and approves, then lands on "This sign-in attempt has expired" #1907
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1907
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?
Symptom (whakatohea-demo, 2026-09-25)
A member left the app-door QR page open, and the first code expired (2 min). They pressed for a new code, scanned it, approved it in the app, and landed on the control plane's "This sign-in attempt has expired." restart page. "Continue here" then worked, because the bridge's silent hop completed.
Timeline (caddy):
/authz/signin?rd=/302. The gate seals its flow cookie (flowTTL= 10 min,internal/controlapi/signin.go:64)/login/app/challenge?authRequestID=6590af1b…, first codeUzuwda…(appChallengeTTL= 2 min,internal/idp/appdoor.go:65)/login/app/challenge?authRequestID=6590af1b…, same auth request, new code4JDzeS…/authorize/callback302 →/authz/callback400signin_expired(no flow cookie)Cause
The bridge's auth request has no lifetime.
handleChallengewill mint a fresh code for an auth request of any age, but the relying party behind it (the gate, 10 min) has already given up. So the page offers a working-looking QR for a sign-in that is already dead, and the member only finds out after scanning and approving in the app.Fix
A new code never outlives the sign-in it serves:
flowTTL(10 min; one shared constant or a pinned equality test, so the two cannot drift).gate-oidcthat is/authz/signin?rd=<the validated login hint>; for another client, its own start, or a plain "start again" with that client's landing. The member gets a fresh flow on both sides with one click and never scans a dead code.Acceptance criteria
/authz/signinflow) instead of issuing a code. Scanning the new code then signs the member in with no "expired" page.flowTTLare the same value (pinned by a test).rdvalidation assigninRestartURL).References
internal/controlapi/signin_restart.go(the expired page; its branding is #1892)🤖 Generated with Claude Code
swarm-claim host=matou-dev-server-01 run=33846
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1907 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope