Skip to main content

Keycloak integration with OpenLM

Keycloak configuration​

Prerequisites​

  • Keycloak MUST run HTTPS
  • No spaces allowed in usernames

Configuration​

  1. To get the authentication configuration for Keycloak, open:
    <keycloakURL>/realms/<realm-name>/.well-known/openid-configuration
    Replace <keycloakURL> with the URL of your Keycloak server and <realm-name> with your realm name. For example, for the master realm:
    http://localhost:8080/realms/master/.well-known/openid-configuration

  2. To define a client, log in to the administration console, select Clients tab in left menu, then select Create Client button:Keycloak admin console Clients tab with the Create Client button.Keycloak Create Client form for defining a new client.

  3. Save the client.

  4. Select the client to see its details.

  5. Add an OIDC external provider in the Identity Service or the Cloud Portal, and use the following Client ID and Client Secret:
    Adding an OIDC external provider in Identity Service with the Keycloak Client ID.

    OIDC external provider form with the Keycloak Client Secret entered.

  6. Authority should be filled with the issuer value from the configuration returned in step 1.
    Note - in some cases one needs to use keycloak-url/auth/realms/master/.well-known/openid-configuration
    OIDC external provider Authority field filled with the Keycloak issuer value.

  7. Save the external provider.

  8. Edit the Keycloak client and add the redirect URI from the OIDC external provider config in Identity Service:
    Editing the Keycloak client to add the redirect URI from the Identity Service provider config.

  9. Save the client.

The documentation team might draft this page using a large language model. A technical writer reviews every page and verifies it against the product before publishing it. A human makes the final decision.