Device Authorization Grant
The Device Authorization Grant is a way for devices that have no browser or only limited input capabilities, such as smart TVs, streaming sticks, and command-line tools, to obtain access on a user's behalf. Instead of typing credentials on the device itself, the user completes sign-in on a separate device like a phone or computer, and the constrained device then receives an access token. This lets input-limited devices connect to services without requiring an awkward on-device login experience.
The Device Authorization Grant is an OAuth 2.0 authorization grant, specified in RFC 8628, designed for internet-connected devices that lack a browser or a suitable input method for user-agent-based authorization. In a typical flow, the device requests a device code and a user code from the authorization server, then instructs the user to visit a verification URI on a secondary device to enter the user code and complete authorization there. Meanwhile, the device polls the token endpoint until the user approves (or denies) the request, at which point it receives an access token (and, depending on configuration, a refresh token). As an OAuth 2.0 grant, it concerns delegated authorization and token issuance rather than user authentication; any authentication of the user occurs at the authorization server during the user-facing browser interaction, and obtaining an ID token for authentication would require pairing with OpenID Connect. Vendor implementations (for example, Microsoft Entra and Auth0) may vary in supported parameters and polling behavior.
Why it matters
Input-constrained devices, smart TVs, streaming sticks, hardware encoders, and command-line tools, create a real usability and security problem for delegated access. These devices often lack a browser or any practical way to type a username and password, and forcing on-device credential entry produces awkward, error-prone experiences that also risk exposing credentials on shared or semi-trusted hardware. The Device Authorization Grant, standardized as RFC 8628, addresses this by moving the user-facing authorization step to a secondary device such as a phone or computer that has a proper browser and input method.
Who it's relevant to
Inside Device Authorization Grant
Common questions
Answers to the questions practitioners most commonly ask about Device Authorization Grant.
