Trento Single Page Application

The trento single page application, leverages the JWT authentication mechanism of trento API, using the refresh token flow when the access_token expires.

Login Diagram

Login diagram
Figure 1. Login diagram

Refresh Token Success Diagram

Refresh token success diagram
Figure 2. Refresh token success diagram

Refresh Token Failure Diagram

Refresh token failure diagram
Figure 3. Refresh token failure diagram

All the login/logout procedures are handled by the SPA using route guards and authentication providers hooked into the network calls.