Examples
OAuth 2.0 Authorization Code Flow
@seq
[participants]
user:User|actor
app:Client App|client
auth:Auth Server|service
api:Resource API|service
[messages]
user->app:Click "Login with Provider"
app->auth:Redirect to /authorize
auth-->user:Show login page
user->auth:Enter credentials
auth->auth:Validate credentials
auth-->app:Redirect with auth code
app->auth:POST /token (code + secret)
auth-->app:Access token + Refresh token
app->api:GET /resource (Bearer token)
api->api:Validate token
api-->app:Protected resource
app-->user:Show dataE-Commerce Checkout
Microservices Request Flow
WebSocket Real-time Updates
Database Transaction
More Examples
Last updated