Skip to main content

Custom Authentication

To develop custom authentication, you need to understand the authentication process. Below is the workflow from the launcher login to the response on your website.

How Authentication Works

  1. The user enters their username and password in the launcher.
  2. The launcher sends a request to your authentication server.
  3. The server verifies the credentials and sends a response.
  4. The launcher processes the response and grants or denies access.

The image shows 4 stages of request flow. Here is the description of all 4:

  1. Request from the launcher to Gml.Backend
curl
--location 'http://localhost:5003/api/v1/integrations/auth/signin' \
--header 'Content-Type: application/json' \
--data '{
"Login": "USERNAME",
"Password": "PASSWORD",
"2FACode": "2FA_CODE"
}'
  1. Gml.Backend → Your Website
curl --location 'http://YOUR_ADDRESS' \
--header 'Content-Type: application/json' \
--data '{
"Login": "USERNAME",
"Password": "PASSWORD",
"Totp": "2FA_CODE"
}'

Custom Authentication

You can implement your own custom authentication via an Endpoint. You need to implement a Web API Endpoint on your service.

  1. Go to the control panel: IntegrationsAuthenticationAuthenticationCustom Authentication
  2. Paste the URL of your implemented authentication endpoint (Gml.Backend → Your Website).

Important: Example implementations can be found on GitHub