Glossary

What is OAuth device authorization flow?

The OAuth device flow lets a device without a good browser or keyboard get a token by having the user approve a short code on a second device.

The OAuth 2.0 Device Authorization Grant, defined in RFC 8628, is meant for input-constrained devices such as TVs, consoles and command-line tools. The device asks the authorisation server for a device code and a short user code, and shows the user a verification URL. The user opens that URL on a phone or laptop, signs in, enters the user code and approves. Meanwhile the device polls the token endpoint until the user finishes, at which point it receives an access token and, where allowed, a refresh token. The CLI never handles the user's password, and the sign-in, including multi-factor authentication or a passkey, happens in a normal browser. Many developer tools use it for login, including the GitHub CLI and the Azure CLI. The main security risk is phishing of the user code, where an attacker starts a flow and persuades someone to approve it, so the verification page should show what is being authorised and the code should be short-lived. For agents running in a terminal, the device flow is a useful pattern because a human approves the grant out of band. BotPassword's cli_login intent does not run device flows yet. Completing OAuth device and browser logins and keeping the resulting tokens in the vault is planned, not built yet.

Give agents access. Keep the keys.

BotPassword is in early access. Request an invite and we'll email you when your spot opens.