Versions Compared

Key

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

...

Panel
panelIconId0b4dfdca-ccd8-4047-a32e-42a4d1e5921b
panelIcon:chatjsm:
panelIconText:chatjsm:
bgColor#DEEBFF

The auto-login feature requires several changes on the front end and back end of the service that is going to be integrated.

Prerequisites

A pre-shared secret key is used to verify that the login request is valid and coming from your (client’s) backend. Each service desk project has its own secret key. To obtain the key, open your project, and go to Project Settings > Chat Settings > Widget Functionality > Registration & Log In.

...

The pre-shared secret key should be stored on the backend.

Logging in

While performing user login on the website, the service should generate and issue a JWT access token for a chat and sign it with the pre-shared secret, as shown in the example below:

...

Limitation 2: Due to the Jira user creation process, while logging in with a non-existing JSM user email, it may take some time for the user to be fully created on the Atlassian side (less than 1 minute). During this process, trying to log in again with the newly created user may lead to an error, which is temporary.

Logging out

To log out, the service’s frontend should call await spartezSupportChat.sso.logout();.