OAuth 2.0 is the standard authorisation framework that lets an application obtain limited access to a user's resources through tokens, without seeing their password.
OAuth 2.0, defined in RFC 6749, separates four roles: the resource owner (the user), the client (the app), the authorisation server, and the resource server (the API). Instead of giving the app a password, the user signs in at the authorisation server and approves specific scopes. The server then issues an access token, which the client presents to the API, and optionally a refresh token to get new access tokens when the old one expires. The most common flow for apps with a user is the authorisation code grant, which current guidance in OAuth 2.0 Security Best Current Practice (RFC 9700) says should use PKCE, a per-request code challenge defined in RFC 7636. Machine-to-machine access uses the client credentials grant. OAuth tokens are bearer tokens in RFC 6750, so they must be protected like passwords, but they are narrower in scope and shorter-lived than most API keys, and a user can revoke them. OAuth handles authorisation, not login; OpenID Connect adds identity on top. For agents, OAuth matters because MCP's authorisation specification builds on it. BotPassword stores and refreshes OAuth tokens in its vault so tools can use them without exposing refresh tokens to an agent.