Skip to main content
Skip table of contents

Connecting Custom Keycloak Installations

If the included Keycloak installation is to be replaced with a custom Keycloak installation, a Keycloak configuration file (keycloak_config.json) must be created in the server directory under \configurations.

Example

JSON
{
  "connection": {
    "realm": "X4Realm",
    "auth-server-url": "https://servername:8443/auth/",
    "resource": "X4",
        "ssl-required": "none",
        "confidential-port": 443,
    "credentials": {
      "provider": "legacy",
      "legacy": "XXX",
      "secret": "XXX"
    }
  }
}

The configuration file contains the following elements:

Element

Description

connection

Parent block with all connection parameters

realm

Name of the realm used for the connection

auth-server-url

URL of the authentication server that is used to log in (this is http://localhost:8085 when the all-in-one installation package of X4 BPMS is shipped).

resource

Name of the client that logs on.

ssl-required

Specifies whether SSL/TLS is required for the connection. This element is optional and can be used in the exceptional case that communication between X4 and Keycoak is to take place without HTTPS.

confidential-port

Port where Keycloak is externally available. This element is optional and can be used in case Keycloak is running behind a reverse proxy server.

credentials

Block of credentials for authentication

provider

Credential provider used

legacy

Legacy provider used

secret

Client secret/password for authentication

The following roles must be created in Keycloak:

Role

Description

x4_admin_access

Grants access to the X4 ReST API.

x4_control_center

Grants access to the X4 Control Center in the future.

x4_dev_access

Grants access to the X4 Designer.

x4_dev_access_*

Grants access to all X4 repositories.

To use the X4 ReST API, the following rights must be granted to the appropriate user:

Client Roles

  • realm-management

Assigned Roles

  • manage-users

  • view-users


More information

Keycloak Authorization Client

Configuring a Reverse Proxy


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.