Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The user will be allowed to log in with their credentials and will receive access_token and refresh_token on successful authentication. The tokens will be stored in a secure cache. The Login flow cannot be completed without an active internet connection.

...

Expand
titlehttps://sequencediagram.org/
Code Block
title Login Flow Sequence

participantspacing equal

fontawesome f007 User
fontawesome f10b Client
fontawesome f1c0 "Local DB" as DB
fontawesome f233 "Auth Service" as Auth

frame Login Flow

autoactivation on

User -> Client: Login

alt OFFLINE
Client -#redx Auth: Login with credentials
deactivate Auth

else ONLINE
Client -> Auth: Login with credentials
Auth --> Client: <align:center>access_token\nrefresh_token</align>
Client -> DB: <align:center>access_token\nrefresh_token</align>
DB --> Client: //
end

Client --> User:

autoactivation off
destroysilent User