Skip to content
BENIBIX Learn

OAuth 2.0

Development🔑 AuthAuthorization

Also known as OAuth, OAuth2, Open Authorization

A standard that lets one app use your account in another. You never share your password.

Think of it like

Think of it like a valet key. It lets someone park your car, but not open the boot.

Example

Jack lets a printing app read his photos from cloud storage. He clicks allow once, and the app gets read-only access to his photos, nothing else.

Why it matters

Apps can work together. Nobody has to hand their password to another app.

Definition

OAuth 2.0 lets one app act for you in another, with no password. You click allow on a screen from the service that holds your data. That service then gives the app an access token with only the rights you agreed to. You can take those rights back at any time. It was published in 2012 and is how most apps link to each other today.

Common mistake

Thinking OAuth logs people in. It grants access; proving who someone is needs OpenID Connect on top.

Key takeaways

  1. 1
    Act on your behalf. No password shared.
  2. 2
    Only what you allow. Called scopes.
  3. 3
    Can be taken back. Revoke at any time.

Compare