Configuring Authentication Using OpenID Connect and Keycloak
In this article
Configuring authentication using Client ID and Client Secret via OpenID Connect (OIDC) enhances authorization security and enables centralized management of user access to the Operavix system through Keycloak. This method is especially useful when authenticating a large number of users.
To configure authentication via OIDC and Keycloak using the Client ID and Client Secret mechanism, follow the steps below.
Configuring the Client in Keycloak
- In the settings tab of the new client, select the client type OpenID Connect and specify a Client ID to identify the client in Keycloak.
- In the Credentials tab, in the Client Authenticator field, select the authentication type Client ID and Secret. This parameter defines how the Operavix client authenticates with Keycloak.
- In the Client scopes tab, keep the email and profile scopes. You can remove all other scopes. These parameters determine which data is passed to the client during authentication.
- Go to the Settings tab and, in the Access Settings section, fill in the following fields:
- Root URL — domain address
- Home URL — home page address
- Valid redirect URIs — /oidc_auth/auth
Adding Authentication in Operavix
- Go to the Authentication settings section and add a new authentication type — OpenID.
- In the window that opens, enter the URL from the issuer attribute in the Issuer URL field. To view the attribute value, go to the Realm Settings tab in Keycloak and open the OpenID Endpoint Configuration link. This URL allows the Operavix system to communicate with the OIDC provider.
- Fill in the Client Authenticator, Client ID, and Client secret fields with the values from Keycloak.
- Click Add.
- Assign the created OpenID authentication to at least one Operavix user to make it available for use.
Authentication via the OIDC protocol using Client ID and Client Secret has been successfully configured. Operavix users can now perform secure authentication through Keycloak.
Was the article helpful?
Yes
No