Configuring Keycloak

The keycloak authentication enables single sign-on authentication to the application. This section provides the details on how to set up the keycloak server and configure the keycloak client.

Setting up Keycloak Server

To set up the Keycloak server,

  1. Go to https://www.keycloak.org/downloads folder and download the latest ZIP file from the server section, and extract the same.

  2. Go to \keycloak-11.0.3\standalone\configuration.
  3. Open standalone.xml and modify the ports (as highlighted in the below screen capture). This port is different from that of the Fabric and Application server.

  4. Go to <Keycloak_Installation_Folder>\bin and run the standalone.bat file to start the JBoss server. The Keycloak is set up successfully.

Configuring Keycloak Client

To configure Keycloak client,

  1. Start the JBoss server and open the Keycloak web application using http://localhost:8180/auth/.
  2. Login to the administration console as admin/admin.
  3. Create a new client for the Temenos Workbench application that needs to be authenticated through Keycloak.
  4. Open Keycloak and click Add realm.

  5. Enter WorkbenchAgent in Name and click Create.

  6. Open the created realm and click Realm Settings > General.
  7. Enter Name and Display name and click Save.

  8. Click Clients > Settings and enter the following values in the respective fields.
    • Client ID: Workbench
    • Client Protocol: openid-connect
    • Access Type: public
  9. Enter the following configurations according to the host and port you have defined in the Fabric.
    • Root URL: http://<dns_name>:<port>/apps/dsfworkbench
    • Valid redirect URLs: http://<dns_name>:<port>/authService/100000002/oauth2/callback. This is the URL provided by the OAuth2.0 Identity Service in Fabric.
    • Base URL: http://<dns_name>:<port>/apps/dsfworkbench
    • Admin URL: http://<dns_name>:<port>/apps/dsfworkbench
    • Web Origins: http://<dns_name>:<port>
    In the above configurations, <dns_name> can be hostname/machinename/ipaddress/localhost and <port> refers to the port on which your Fabric is running.
  10. Enter RS256 in Access Token Signature Algorithm and ID Token Signature Algorithm under Fine Grain OpenID Connect Configuration.

  11. Click Roles > Realm Roles and click Add Role.

  12. Enter WorkbenchAdmin as Role and click Save.

  13. Click Users > Details to create a new Transact user that has to be authenticated through Keycloak. For example, INPUTT can be set as the user.
  14. Enter the required field details as shown in the below screen capture and click Save.

  15. Enter the password for the user created in the Credentials tab.

  16. Map the WorkbenchAdmin role to the user created in the Role Mappings tab.

  17. Repeat the steps to create a developer user and set the WorkbenchDeveloper role to the user.

    Keycloak is configured successfully. You can use the credentials configured in Keycloak to login to Temenos Workbench.

Keycloak for Workbench with Git

Keycloak is a standard authentication mechanism that is implemented across all the Temenos products. Read Workbench Roles for more information.

Assigning Roles to Keycloak Users

To assign a role to a keycloak user,

  1. Login to Keycloak.

  2. Go to Users > <<Name of the user>> > Role Mappings.

  3. Select the required roles from Available Roles and add to Assigned Roles. Ensure the keycloak user role is mapped to developer or release_manager.

  4. Perform the following changes in the appJs.properties file.
    1. Ensure the values below are set.
      • IdentityProvider=DsfWorkbenchKeyCloakProvider (default value is IdentityProvider=DsfWorkbenchUserRepoService)
      • DsfWorkbenchKeyCloakProvider.FabricEndpointURL= http://[ipaddress]:[port]/auth/realms/DSFPackager (default value is empty)
        DsfWorkbenchKeyCloakProvider.FabricEndpointURL= http://10.11.12.13:8080/auth/realms/DSFPackager
    2. Set the FABRIC_CLIENT_ID=Workbench to change the client id of DsfWorkbenchKeyCloakProvider in fabric. Allows to pass multiple Client IDs with multiple instances.

Field Name
|
Application/Table name

Temenos Headquarters SA
2 Rue de l'Ecole-de-Chimie
CH - 1205 Geneva
Switzerland

Copyright © 2020- Temenos Headquarters SA

Published on :
Tuesday, May 23, 2023 7:30:25 PM IST