Sign in with OAuth

make-diagram · Claude Haiku · low effort · Claude Code · 17 Oct 2026

Sign in with OAuthsequence diagram with 4 participants and 9 messages.🧑ACTORUser🌐SERVICEWeb app🔐SERVICEAuth server🔌SERVICEAPIstarts sign-inredirects to authorizeasks for consentgrants consentsends authorization codeexchanges code for tokenreturns access tokencalls API with tokenreturns profile

Sign in with OAuth

Participants

Messages in order

  1. User → Web app: starts sign-in
  2. Web app → Auth server: redirects to authorize
  3. Auth server → User: asks for consent
  4. User → Auth server: grants consent
  5. Auth server → Web app: sends authorization code
  6. Web app → Auth server: exchanges code for token
  7. Auth server → Web app: returns access token (reply)
  8. Web app → API: calls API with token
  9. API → Web app: returns profile (reply)