Workflow of Third-party Authentication in Catalyst Applications

The following is a step-by-step drill down of the process of how an end-user authenticated by a third-party authentication service will log in to your Catalyst application:

cloud_scale_auth_third_party_workflow

  1. When the end-user enters their details to log in to your application, they will be forwarded to the third-party authentication service that you have chosen.

  2. The user details will be verified and stored in the database of the third-party service after the authentication logic is passed.

  3. The user details will then be passed to the Catalyst client application.

  4. The details will then be redirected to the authentication function that you code. This authentication function must include the Catalyst server-side script to generate a custom server token for the authenticated user.

Note: The code to generate the token is be provided to you in the Catalyst console. It is also available in the Java, Node.js and Python SDK docs.
  1. This token will then be passed to the Web SDK incorporated in the client code.

  2. The user will be logged in to your application using a JSON Web Token token (JWT) generated from the client script, which will contain the authenticated user’s details.

  3. (a). The user will now have access to the components of your application through its endpoints. Catalyst Security Engine ensures that all Catalyst components associated with the application are accessed securely by users.

Note: If the end-user is accessing your application for the first time (a signup process), the user details will be added to User Management in the Authentication component. Apart from this, the sign-in workflow will remain the same.
  1. (b). The user’s details along with the token information will also be stored in the browser cookie through the Web SDK, to ensure their session is maintained.
Note: The token will remain valid only for one hour. After that the steps from 1 to 8 will be repeated in the background.

Workflow of an authenticated user logging into your application while the token is still active

cloud_scale_auth_third_party_workflow_2

After a user is authenticated and the login session is persisting, the user can securely access all the end points of your application until the time the token is active.

Last Updated 2023-05-08 18:05:05 +0530 +0530

ON THIS PAGE