-
Notifications
You must be signed in to change notification settings - Fork 3
Sequence Diagram
kimsungwon edited this page Nov 9, 2023
·
12 revisions
sequenceDiagram
Client ->> Server: Request sign-in with ID token
activate Server
Server ->> Firebase: Verify ID token
activate Firebase
Firebase ->> Server: Return result of ID token's verification
deactivate Firebase
alt is verified
Server ->> Server: Issue user token
Server ->> Client: Set user token as cookie
else is not verified
Server ->> Client: 401 UNAUTHORIZED
end
deactivate Server
sequenceDiagram
Client ->> Server: Request sign-out
activate Server
Server ->> Client: Clear cookie
deactivate Server
sequenceDiagram
activate mrc-ui
participant Browser
mrc-ui ->> mrc-api: Request for sign-in
activate mrc-api
mrc-api ->> /oauth2/v2/auth: Request for authentication
activate /oauth2/v2/auth
/oauth2/v2/auth -->> mrc-api: Return redirect url for authentication
deactivate /oauth2/v2/auth
mrc-api -->> Browser: Redirect to google authentication page
deactivate mrc-api
Browser ->> mrc-api: Return authorization code
activate mrc-api
mrc-api ->> /token: Requesst Access token and ID token
/token -->> mrc-api: Return Access token and ID token
mrc-api ->> mrc-api: Build MRC Token
mrc-api -->> mrc-ui: Reurn MRC Token
deactivate mrc-api