IAM glossary
What is OAuth 2.0?
The framework for delegated authorization: it lets an app get an access token to call an API, without seeing the user’s password. On its own it does not tell the app who the user is.
How it works
OAuth 2.0 is a framework for delegated authorization: it lets an application access a resource on your behalf without knowing your password. There are four actors: the resource owner (you), the client (the app), the authorization server (which asks your consent and issues tokens) and the resource server (the API).
The result of an OAuth flow is an access token with specific scopes, which the client uses to call the API. OAuth says nothing standard about who you are: for login you need OpenID Connect on top. The modern baseline is Authorization Code with PKCE for users and Client Credentials for machines.
A simple example
A printing service wants to print photos from your Google Photos. Instead of asking your Google password, it sends you to Google, where you approve “read your photos”. Google gives the printing service an access token valid only for reading photos, which you can revoke at any time from your Google account.
Common mistakes
- Using OAuth alone as a login system, trusting an access token to say who the user is.
- Old flows such as Implicit or Resource Owner Password, deprecated for good reasons.
- Wide scopes and long-lived tokens.