Device Grant Flow is an OAuth 2.0 authorisation flow for devices with limited input, such as TVs, printers or command-line tools. The device displays a code and the user completes sign-in on another device, so the system can obtain an access token without a full browser login on the first device.
What Device Grant Flow Is For
Device Grant Flow is the OAuth 2.0 pattern used when a device cannot handle a normal browser-based login. It lets the device start authorization, while the user finishes sign-in on a separate device and returns a token to the original session.
The core value of the flow is usability on constrained interfaces, but the security model still depends on an authenticated user approving the request on another screen. That makes the flow useful for TVs, printers, terminals, and similar devices where keyboard entry is awkward or impossible.
How the Device Code Interaction Works
In practice, the device shows a short code and a verification instruction. The user enters that code on a trusted browser or app, signs in there, and the authorization server then links the completed login back to the original device session.
This separation is the defining design choice. The first device never needs to collect a password directly, and the user can complete authentication through a richer interface that may support stronger controls such as MFA or conditional access, depending on the identity system in use.
The flow is sometimes called device code flow, device authorization grant, or cross-device login. Those terms are closely related, but not every implementation is identical in policy, user experience, or control options.
Why This Flow Matters in Security Architecture
Device Grant Flow reduces password handling on limited devices, but it does not remove the need to trust the authorization step. The real security question becomes whether the code, browser session, and sign-in context are protected well enough to prevent token theft or mistaken approval.
Because the original device is not the place where the user authenticates, the control boundary shifts to the second device and the authorization server. That can be a strength when the second device supports better identity assurance, but it also means phishing, code replay, and user confusion become more important failure modes.
For a canonical protocol reference, see RFC 6749: The OAuth 2.0 Authorization Framework, and for the device-specific pattern, the IETF device authorization grant specification is the relevant source of truth.
Where Practitioners Need to Be Careful
Operationally, this flow should be reserved for devices that genuinely cannot support a better login method. If a device can support a secure browser, embedded web view, or stronger native authentication, teams should compare those options before defaulting to device code login.
Implementation quality matters because the flow can be abused when users are trained to enter codes without checking the context that prompted them. A code that appears legitimate can still be used in a phishing sequence if the approval step is detached from the real device the user intended to authorize.
For teams building or reviewing OAuth deployments, OAuth 2.0 and OpenID Connect Guide for Identity Teams is a useful companion for understanding grant types, token handling, and common implementation mistakes.
Risk and Threat Considerations
Device Grant Flow creates a specific phishing risk because the code is meant to move the user from one device to another. Attackers can exploit that handoff by tricking users into approving a login they did not initiate, then using the resulting token or session to access the target account.
Failure mechanism: The attacker obtains or relays the device code, induces the user to complete sign-in on a legitimate browser, and captures the authorization outcome before the user realises the login was attacker initiated.
Impact: The attacker may gain access tokens, session continuity, or downstream account access without ever knowing the user's password, which can make the compromise harder to detect and revoke promptly.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST SP 800-63 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Device grant flow depends on safe token and code lifecycle handling. |
| IA-2 — Identification and Authentication (Organizational Users) | The user completes the authorization flow through authenticated sign-in. | |
| AC-3 — Access Enforcement | The flow ultimately enforces what the resulting token can access. | |
| Recommendation — Manage device codes and tokens with strict issuance, expiry, and revocation controls. Require strong user authentication before completing device authorization requests. Enforce authorization decisions on the resulting token and session privileges. | ||
| NIST SP 800-63 | Digital Identity Guidelines | The flow relies on identity assurance and phishing-resistant authentication choices. |
| Recommendation — Apply the assurance and phishing-resistance guidance when designing the sign-in step. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Device-code login is an authentication path that can be abused if verification is weak. |
| Recommendation — Harden the authentication path and monitor for abuse of the device approval step. | ||
Practitioner Guidance
Why practitioners should care: Treat Device Grant Flow as a constrained-UX exception, not a default login method. It is most defensible when the device cannot reasonably support a stronger, less phishable sign-in path.
What to watch for: Review whether the user approval step is clearly tied to the initiating device, whether the policy allows the flow only where needed, and whether sign-in telemetry can surface suspicious cross-device authorizations.
For environments that already use Microsoft Entra ID, the Entra ID Security Guide and the Phishing-Resistant MFA Guide are useful references for policy design around conditional access, stronger authentication, and blocking unsafe flows where possible.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org