OAuth
OAuth is an authorization framework that lets an application obtain limited access to a service. OAuth 2.0 is specified in RFC 6749; authentication for federated login is commonly provided by OpenID Connect on top of OAuth 2.0. [1][2]
What does OAuth mean in simple terms?
Instead of giving another application your account password, you approve access to selected capabilities. The application receives a token it can use within that permission. Authorizing access and proving who a user is are different jobs, so a login implementation needs an appropriate authentication protocol too.
How can OAuth be explained with an analogy?
It is a limited access pass issued for a particular purpose, not a copy of the owner’s master key or proof of the visitor’s identity.
Where is OAuth used?
A limited integration
A hypothetical calendar tool requests permission to read events. The user reviews the requested scope, and the tool uses an access token rather than collecting the calendar account password.
A GitHub integration
GitHub documents an authorization-code flow for OAuth applications. A team follows the provider’s requirements and current security guidance rather than treating a returned token as a complete login system. [3][4]
Learning steps, limitations and developments
Request only necessary scopes, protect tokens, and follow current provider guidance. RFC 9700 updates OAuth 2.0 security practices, including redirect handling and PKCE. A token is not required to be a JWT. OAuth does not make an implementation automatically secure. [4]
Which concepts are related to OAuth?
- Related conceptSSOA related concept within the same category.
- Related conceptJWTA related concept within the same category.
Which sources explain OAuth?
- OAuth 2.0 RFC 6749 — https://www.rfc-editor.org/rfc/rfc6749
- OpenID Connect Core 1.0 — https://openid.net/specs/openid-connect-core-1_0.html
- GitHub: Authorizing OAuth apps — https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
- OAuth security RFC 9700 — https://www.rfc-editor.org/rfc/rfc9700
Tell us what you think
Your feedback helps us improve the content.