Device Authorization Grant

Client-Direct + Proxy
Privacy: Client-Direct + Server-Proxy. Prefer browser fetch() to the IdP. On CORS failure or confidential clients, fall back to /api/v1/proxy/token. Credentials and assertions are not retained.

RFC 8628 device flow: request a user_code and QR, then poll the token endpoint live with interval, slow_down and expiry handled, plus DPoP and snippets.

Configuration

Profiles

No profiles yet. Save one per environment (dev, staging, prod) and switch between them here.

Saved in this browser only. Secrets, keys and tokens are never saved or exported.

Each token poll signs a fresh DPoP proof and answers DPoP-Nonce challenges. The device authorization request takes no proof.

Discover the endpoints (or enter them), then click Request device code. The user_code, verification URI and QR code appear here.

What is the Device Authorization Grant?

The OAuth 2.0 Device Authorization Grant (RFC 8628) signs in apps on devices that have no browser or are hard to type on, such as TVs, consoles, CLIs and IoT devices. The device gets a device_code and a short user_code, shows the user a URL (or QR code), and polls the token endpoint while the user approves on a phone or laptop.

This workbench sends the device authorization request to your authorization server, shows the user_code and a QR code for verification_uri_complete, and polls the token endpoint with the RFC 8628 §3.5 rules: it waits the interval, adds 5 seconds on every slow_down, stops on access_denied or expired_token, and stops by itself when expires_in runs out.

How to use this tool

  1. Enter the issuer and click Discover to read device_authorization_endpoint and token_endpoint, or type them in. Fill example values shows the shape of a request with a placeholder issuer (demo.example.com).
  2. Fill client_id, client authentication, scope and any resource indicators, then click Request device code.
  3. Open the verification URI (or scan the QR code), sign in and approve. Click Start polling and watch the live poll log until tokens arrive, then decode them below. Snippets has curl, fetch and a Node poll loop.

Frequently asked questions

How does slow_down change the polling interval?

RFC 8628 §3.5 says the client must add 5 seconds to its interval for that request and every later one. The poll log shows the interval after each answer, so you can see 5 s become 10 s, 15 s and so on.

Does stbox call my authorization server?

Only when you click Request device code or start polling. Requests go straight from your browser first and fall back to the stbox HTTP proxy when CORS blocks them. The proxy refuses private network addresses and does not log or store bodies, secrets or tokens.

Can I use DPoP with the device flow?

Yes. Turn on DPoP and every token poll carries a fresh proof signed with an in-browser key, including the retry after a DPoP-Nonce challenge. The device authorization request itself takes no proof. stbox warns if the AS still returns a Bearer token.

What is the device code grant type?

urn:ietf:params:oauth:grant-type:device_code — sent to the token endpoint with the device_code from the device authorization response.