Configuring Keycloak
Last updated
Last updated
Keycloak is the default authentication provider for Valtimo. It is used to authenticate users, and Valtimo can retrieve information about users and roles from Keycloak.
In order for Valtimo to connect to Keycloak, certain properties are necessary. There are two different location in which these properties can be placed.
The properties can be placed in the application.yml
:
Or as an environment variable:
More information about these properties and other optional properties can be found .
By default, Valtimo uses Keycloak realm roles. But Valtimo can be configured to also use the Keycloak client roles. To make use of Keycloak client roles together with the realm roles, the following property is needed:
or
When keycloak is used as authentication provider for Valtimo, the public key from Keycloak needs to be configured in order to validate the JWT tokens. The public key can be provided by configuring the following environment variable: