Configure OIDC on Keycloak for a Web Service
Last updated
Last updated
This section will guide you in configuring authentication via OIDC with Keycloak.
Go to the "Clients" page and click on the "Create" button :
Assign a name to the “Client ID” (necessary for the configuration on the BMS).
Set the “Access Type” to “confidential”.
Set “Service Accounts Enabled” to “true”.
Add “Root URL”, “Valid Redirect URLs”, “Admin URL”, and “Web Origins” with the address of the BMS where the Web Service is located. In the example below, dev.mars :
Click on “Save” at the bottom of the page.
Go to the “Credentials” tab of the client and retrieve the secret (necessary for configuration in the BMS).
Go to “Realm Settings.”
Click on “OpenID Endpoint Configuration.”
At the bottom of the file, locate “token_endpoint.”
Copy the value to configure it in the BMS.
All that remains is to go to the BMS and fill in the following fields :