Skip to content

Sequence Diagram

kimsungwon edited this page Nov 13, 2023 · 12 revisions

Sign-in

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

Loading

Sign-out

sequenceDiagram
	participant mrc-ui
	participant mrc-api
	
	mrc-ui ->> mrc-api: Request sign-out
	
	mrc-api ->> mrc-ui: Clear cookie
Loading
Clone this wiki locally