Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

07 Devices

CLIs and machines use RFC 8628, with a key from the first request.

Request

The device makes its keys and sends the public key, a name and a requested scope with a DPoP proof. The answer has a device code, a user code and the verification address. The fingerprint of the device key is shown on the device.

Approval

  • On the first-party level, with a fresh login.
  • The page shows the fingerprint, the name, the requested scope, the time, and the country or network of the request if the application knows it. The user confirms that the fingerprint is the same on the device.
  • A user code alone opens nothing: 8 characters from an unambiguous alphabet, rate-limited, single use, at most 15 minutes.
  • Denying is one click, and ends the request.
  • The application decides which scopes a device may ask for, who may see, approve and deny a request, and the kind of the approved device. It can add its own writes to the commits of an approval and a revocation.

Tokens

  • A device gets access tokens by signing an assertion (RFC 7523) with its key. There is no refresh token and no shared secret.
  • The device key is the only credential. Revoking it ends its tokens in the same commit.

Kinds

KindActs asEnds
User deviceThe user, first-partyWith the user or when revoked
MachineItself, with a scope from the applicationWhen revoked; survives the user that approved it, if the application says so

A machine never satisfies Fresh.