OAuthFlowDiagram
DomainVisual walkthrough of an OAuth 2.0 flow with actors, numbered steps, endpoints, and scopes.
OAuth 2.0 Flow
Authorization Code
User
Your App
Auth Server
- 1User clicks "Sign in"
- 2Redirect to /authorize
- 3User grants consent
- 4Code returned to app
- 5Exchange code for token
- Authorization URL
- https://example.com/oauth/authorize
- Token URL
- https://example.com/oauth/token
- Refresh URL
- https://example.com/oauth/refresh
Available scopes
read:users— Read user datawrite:users— Create or update users
<OAuthFlowDiagram flow="authorizationCode" tokenUrl="…" authorizationUrl="…" scopes={[…]} />OAuth 2.0 Flow
Client Credentials
User
Your App
Auth Server
- 1App authenticates with client ID + secret
- 2POST to /token
- 3Access token returned
- Token URL
- https://example.com/oauth/token
Available scopes
admin— Full administrative access
<OAuthFlowDiagram flow="clientCredentials" tokenUrl="…" />