Skip to content
Grant Types
step 1/5

Reading — step 1 of 5

Read

~1 min readOAuth Concepts

Grant Types

OAuth 2.0 has multiple "flows" (grant types) for different scenarios:

GrantUse caseStatus
Authorization CodeWeb apps with backend (server-to-server token exchange)Recommended
Auth Code + PKCEMobile apps, SPAs (no client secret)Recommended
Client CredentialsServer-to-server, no user involvedOK
Resource Owner PasswordUser gives password to app (anti-pattern)DEPRECATED
ImplicitOld SPA pattern; tokens in URL fragmentDEPRECATED (use PKCE)
Device CodeTVs, CLI tools without browsersOK
Refresh TokenRenew access without re-prompting userUsed WITH others

Authorization Code + PKCE is the modern default for almost everything. Removed:

  • Implicit flow: tokens leaked through browser history.
  • Password grant: defeats OAuth's purpose (apps see passwords).

Don't implement deprecated flows. Modern OAuth providers refuse to issue tokens via password/implicit grants.

OAuth 2.1 (in progress) consolidates this — it's basically "OAuth 2 minus the deprecated bits".

Discussion

Ask a question, share an insight, or help someone who’s stuck.

Sign in to post a comment or reply.

Loading…