Adding a Keycloak Client (Agent)
This guide outlines the process of creating and configuring a new client (acting as an an agent) within your Keycloak realm.
Client Creation Steps
-
Create New Client:
-
Configure General Client Parameters: Set the following parameters for the new client. (Note: Specific values for
Client ID,Root URL,Valid Redirect URIs, andWeb Originswill depend on your application's requirements, as shown in the referenced images.)- Client ID:
[Value from image 2](e.g.,your-application-name) - Client Protocol:
openid-connect - Access Type:
confidential(This is common for agents that hold a secret) - Standard Flow Enabled:
OFF(typically for confidential clients acting as agents) - Implicit Flow Enabled:
OFF - Direct Access Grants Enabled:
OFF - Service Accounts Enabled:
ON(Crucial for an 'agent' client) - Authorization Enabled:
OFF(unless your agent specifically uses Keycloak's authorization services) - Root URL:
[Value from image 2](e.g.,https://your-api.com/) - Reference Image:

- Client ID:
-
Define Allowed API URLs (Scopes): Specify the API URLs that this client is permitted to interact with. These are typically configured in the
Valid Redirect URIsand/orWeb Originsfields, which define the allowed callback URLs after authentication. -
Retrieve Client Secret: After saving the client configuration, navigate to the
Credentialstab for the newly created client.- The
Client secretdisplayed here will serve as the password for this client when it authenticates with Keycloak.
- The
Associated FLD User Configuration
The user associated with this Keycloak client in FLD (presumably another system) should follow a specific naming convention:


