System Design
13. Security ArchitectureAnimated
OpenID Connect (OIDC)
An identity layer on top of OAuth 2.0.
The idea
Adds an ID token that tells the app who the user is.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- current message
- earlier
- failure or attack
The user wants to log in to the app.
- step:
- 1/7
- from:
- User
- to:
- App
1/7
Time runs downward. Solid arrows are requests, dashed arrows are replies.
Step by step
- 1Redirect to the identity provider
- 2User authenticates
- 3App receives an ID token and access token
- 4App verifies the ID token
Where it is used
Single sign-on and social login.
Watch out for
Validate issuer, audience and signature.