Repository navigation
feat(auth): declare this device when signing in - #1590
Merged
Merged
Conversation
ace331
enabled auto-merge (squash)
November 12, 2026 02:09
`future auth login` and the Desktop's sign-in now send the durable installation id (and the machine name) with the device-code request, so the platform can record which device asked for the issued key. The identity is best-effort: a login still succeeds with empty fields when none can be resolved, and an older platform ignores the unknown keys. Tests: the shared identity helper, plus a login test that captures the POST body and checks both fields are present.
ace331
force-pushed
the
feat/auth-login-device-id
branch
from
November 12, 2026 02:53
06ae161 to
a26b3b4
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.
What
future auth login(and the Desktop's own sign-in) now declare this installation with the device-code request:device_id— the durabledesktop_…identity already used for agent-session provenance and remote pairingdevice_name— the OS machine name, the half a person recognizesBest-effort: an unresolvable identity sends empty fields and login still succeeds; an older platform ignores the unknown keys. This is the client half of recording which device created an API key.
Test plan
login_declares_this_device_to_the_platformcaptures the POST body and asserts both fieldscargo test -p future-host --lib device_identity(5) andfuture_login(8)cargo test -p future-cli --lib commands::auth(31)cargo clippy -p future-host -p future-cli --all-targets -- -D warnings