Single sign-on
If you are implementing a big enterprise solution that consists of different distributed applications that require authentication and authorization but require to use the same user's database, you will need to implement a different flow to manage the authentication in all these independent applications. This mechanism is called single sign-on (SSO), which will basically ask for login once in any of your applications and will reuse the same generated token in all the applications. The following diagram explains this flow:
In the preceding illustration, there are three applications. Let's suppose that these three different applications are developed by the same company and the employees use the three applications. Imagine that in order to access each application, the employees have to log in to each application using different credentials, or they can choose to use the same username and password for the three apps.
Why should our users log in again to another application if these...