OPENID INTEGRATION
In the On-Premise deployment available to corporate customers, the system supports authentication through providers that implement the OpenID standard. You can configure shared authentication settings for the web client and the web administration console, or configure authentication separately for each.
Integration with OIDC providers is configured using environment variables.
Attention! See the environment variable descriptions.
Configuring Authentication Using Keycloak as an Example
Open the Keycloak web console and create a realm named Planr, or use an existing realm. Open the realm, select "Realm settings", and download the "OpenID Endpoint Configuration" file.

Downloading the OpenID Endpoint Configuration file
Open the "Clients" tab and create a client. On the "Capability config" tab, enable "Client authentication". On the "Login Settings" tab, specify "Valid redirect URLs". Enter the FQDN of the host where PLAN-R is deployed, for example, https://PLAN-R.ru/*.

Creating a client for the Planr realm

Enabling Client authentication

Specifying Valid redirect URLs
Next, configure the environment variables. Open the previously downloaded OpenID Endpoint Configuration.json file (shown on the right in the screenshot) and map its authentication settings to the environment variables. To obtain the values for OPENDID_CLIENTID and OPENID_CLIENTSECRET, open the required realm in Keycloak, select the previously created Planr client, and open the "Credentials" tab. The OPENID_CALLBACKURL variable must contain the FQDN of the host where PLAN-R is deployed, in the following format: http://PLANR-HOST/api/v1/auth/openid.
After saving the settings, apply the changes by running ./start.sh.

Configuring environment variables for OIDC authentication

Settings for displaying the OpenID icon
If everything is configured correctly, the OpenID icon appears on the sign-in screen.

OpenID button
To sign in using OpenID, first create a user in Keycloak, then create a user with the same username in the PLAN-R administration console.
To create a user in Keycloak:
- Open Keycloak, go to the "Users" tab, and click "Add user". Enter the username and click "Create".

Creating a user - Open the "Credentials" tab and click "Set password". Enter a password and set "Temporary" to "Off". Click "Save", then "Save password".

Setting an account password
Next, open the PLAN-R administration console and create a user on the "Users" tab with the same username as in Keycloak.

Creating a user in the PLAN-R administration console
Now, when signing in to PLAN-R, click "OpenID" to open the authentication window shown below. Enter the username and password of the user created in Keycloak. When signing in for the first time, you will need to link an email address to the account.

Authentication window when signing in to PLAN-R