idip: idss-idp device-code approval UI (Netbird CLI) #795
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#795
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?
Follow-up from #776 (ADR 0199's Netbird row). The bridge SERVES the OAuth 2.0 device-authorization grant — the endpoint is live and discovery advertises
urn:ietf:params:oauth:grant-type:device_code(internal/idp/device.goimplementsop.DeviceAuthorizationStorage, seam-asserted in #776). What is NOT yet built is the interactive user-code approval page: a member enters the code Netbird's CLI shows, signs in (the same KERI step as/login), andstore.CompleteDeviceAuthorizationmarks the flow done.This rides the same faked-KERI-browser join point as the login page, so it lands with the member-browser bundle at the idip-e2e-drive. Authorization-code + PKCE (Netbird's dashboard) already completes end-to-end in #776; this closes the CLI (
netbird up) device flow.Missing-design gate check: this ticket names no
docs/ux/flows/*.mermaidordocs/ux/wireframes/*.htmlfile, and none exists for this surface. That's not an oversight — DDR 0200 explicitly named the bridge's branded sign-in page (the same join point this device-code approval page rides) as a member-facing surface "deliberately not wireframed" at the design-tier gate, owed only brand-kit-fidelity at build time, and it shipped that way in #776. This ticket's own text confirms it rides that exact precedent ("the same faked-KERI-browser join point as the login page"). Soneeds-designdoes not apply here — routing toready-for-agent.Verified against the current code:
internal/idp's device-authorization storage (CompleteDeviceAuthorization) is implemented and referenced by a comment describing the not-yet-built approval page as its caller — the server side is ready and waiting on exactly this UI. Two-way door — new UI code plus reuse of an existing sign-in component, revertible by commit, provable at the idip-e2e-drive seam — proceeding.Agent Brief
Category: enhancement
Summary: Build the interactive user-code approval page for the OAuth 2.0 device-authorization grant, so a member can approve a Netbird CLI (
netbird up) device join from a browser.Current behavior:
The bridge already serves the device-authorization grant end-to-end at the protocol level — discovery advertises it, and the storage layer's completion call exists and is implemented. What's missing is the page a member is sent to: entering the short user code the CLI displayed, signing in (the same KERI-challenge flow the standard sign-in page already uses), and triggering the completion call.
Desired behavior:
A member running
netbird upsees a user code and a URL. Visiting that URL, they're prompted to enter (or confirm, if pre-filled from the URL) the code, sign in via the existing KERI sign-in step, and approve. On approval, the flow completes and the CLI proceeds. An expired or already-consumed code is rejected with an honest message, not a silent failure.Key interfaces:
Acceptance criteria:
netbird up) device-authorization flow entirely through this page: enter code, sign in, approve.Out of scope:
internal/idp/device.go) — this is the approval UI only.swarm-claim host=elitebook-distributed-server-03 run=10104
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #795 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope