Repository navigation
app/: visualci login's device-code sign-in (sc-8900) - #67
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-me
branch
from
December 2, 2026 13:57
f8860e0 to
7b662e3
Compare
ndbroadbent
force-pushed
the
laravel-device
branch
from
December 2, 2026 13:57
447be94 to
5eb53af
Compare
ndbroadbent
force-pushed
the
laravel-me
branch
from
December 2, 2026 14:00
7b662e3 to
f129cc0
Compare
ndbroadbent
force-pushed
the
laravel-device
branch
from
December 2, 2026 14:00
5eb53af to
627445f
Compare
VisualCIdocspring/visualci · build #414 · 333 unchanged · no changes This PR vs base: 22 changed, 2 added since #233, across 6 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
laravel-device
branch
2 times, most recently
from
December 2, 2026 14:36
deab9a3 to
aebe17d
Compare
ndbroadbent
force-pushed
the
laravel-me
branch
2 times, most recently
from
December 2, 2026 15:28
511051b to
612290f
Compare
ndbroadbent
force-pushed
the
laravel-device
branch
2 times, most recently
from
December 2, 2026 16:01
30c8086 to
fd6a9da
Compare
ndbroadbent
force-pushed
the
laravel-me
branch
from
December 2, 2026 16:01
612290f to
cea1c6d
Compare
ndbroadbent
force-pushed
the
laravel-device
branch
from
December 2, 2026 16:06
fd6a9da to
6ebd5c5
Compare
ndbroadbent
force-pushed
the
laravel-me
branch
2 times, most recently
from
December 2, 2026 22:37
c62e65e to
3fb0ee1
Compare
…vice/code and /device/token for the CLI (device code stored hashed, ten minutes, one token once, claimed in one statement), GET/POST /api/ui/device/{code} for the person to approve or deny (codes read as typed); a security notice when the CLI signs in
…isualCI command-line sign-in' label, where and when it was asked for and 'only approve this if you just ran visualci login', with the name the CLI sent as a detail; at most ten codes per address in ten minutes (429); expired codes deleted daily (VISUALCI_DEVICE_PRUNE_HEARTBEAT); a poll within the interval gets slow_down; the code is claimed and its token made in one transaction; the client's address comes through TRUSTED_PROXIES
… and dependencies merged
… and dependencies merged
ndbroadbent
force-pushed
the
laravel-device
branch
from
December 2, 2026 23:06
6ebd5c5 to
0fe3cf4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of sc-8900 (the auth side of the Laravel Rust port). Stacked on #66.
Ports
visualci login's device-code sign-in, which works like RFC 8628.For the CLI (the
apigroup: no session, no CSRF):POST /api/v1/device/codereturns a code pair: a 40-character device code, which is stored as a hash, and a user code such asKQHT-WMRP, using letters that are hard to mistake for each other. The pair lasts ten minutes.POST /api/v1/device/tokenanswerspending,denied,expiredorapproved. An approved code gives a new personal token, once: the code is claimed in one statement. The person also gets the security notice.For the person (the
webgroup):GET /api/ui/device/{code}shows what's asking to sign in.POST /api/ui/device/{code}with{approve}approves or denies it.The same paths and JSON as today's.
make_user_tokenis now shared with the tokens page.Tests:
app/tests/device.rs(2 tests) and a unit test, passing on docspring-dev; clippy is clean.