-
Notifications
You must be signed in to change notification settings - Fork 3
Sequence Diagram
kimsungwon edited this page Nov 28, 2023
·
12 revisions
sequenceDiagram
participant Browser
participant mrc-api
participant /oauth2/v2/auth
participant /token
Browser ->> mrc-api: Initiate sign-in request
mrc-api ->> mrc-api: Generate anti-forgery state token
mrc-api -->> Browser: Provide authentication URL
Browser ->> /oauth2/v2/auth: Request user authentication
/oauth2/v2/auth -->> Browser: Return sign-in redirect URL and authorization code
Browser ->> mrc-api: Request sign-in with authorization code
mrc-api ->> mrc-api: Confirm state token
mrc-api ->> /token: Request access token and ID token
/token ->> /token: Validate authorization code
/token -->> mrc-api: Return access token and ID token
mrc-api ->> mrc-api: Build user token
mrc-api -->> Browser: Provide user token cookie and redirect URL
sequenceDiagram
participant mrc-ui
participant mrc-api
mrc-ui ->> mrc-api: Request sign-out
mrc-api ->> mrc-ui: Clear cookie