Inkline
Menu

OAuth sign-in flow

Templates
OAuth sign-in flow 4 items and 6 connections. click "Sign in with GitHub" redirect with PKCEchallenge one-time code exchange code session tokens signed in User Web app Identity provider API
OAuth sign-in flow — preview
Sequence

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