Skip to content

Instantly share code, notes, and snippets.

@cseeman
Last active December 20, 2022 21:25
Show Gist options
  • Save cseeman/cf1a0cf7d931794d78f570e9f413f4a1 to your computer and use it in GitHub Desktop.
Save cseeman/cf1a0cf7d931794d78f570e9f413f4a1 to your computer and use it in GitHub Desktop.
OAuth 2.0 Flow in Mermaid
sequenceDiagram;
    participant C as Client
    participant O as Resource Owner
    participant A as Authorization Server
    participant R as Resource Server
    
    C->>O: requests authorization 
    O->>C: receives authorization grant
    C->>A: requests access token, presents grant
    A->>C: authenticates client, validates grant, issues access token
    C->>R: requests protected resource, presents access token
    R->>C: validates access token, serves request
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment