Learn OAuth, OIDC & JWT
Delegated authorization, single sign-on and signed tokens for web APIs
OAuth 2.0 lets applications obtain limited access to APIs on a user's behalf without seeing their password; OpenID Connect adds a standard identity layer for login and single sign-on; JSON Web Tokens are the signed token format both commonly use. Together they secure almost every modern web, mobile and machine-to-machine API, so understanding the flows and their pitfalls is essential for backend and frontend engineers alike.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know