OAuth sign-in flow
TemplatesSequence
Authorisation code with PKCE between a user, a web app, an identity provider and your API.
What is inside
- 4 participants
- Redirects and replies
- PKCE
Use this template
Opens in the playground, no account needed. Sign up to save it.
Show the Inkline text
diagram sequence "OAuth sign-in flow" actor user "User" participant web "Web app" participant idp "Identity provider" participant api "API" user -> web : click "Sign in with GitHub" web -> idp : redirect with PKCE challenge idp --> web : one-time code web -> api : exchange code api --> web : session tokens web --> user : signed in