Hi,
in Keycloak.Net.Core/Clients/KeycloakClient.cs (and elsewhere where client info is required), there are methods that take string clientId as an input parameter to generate URLs to /admin/realms/{realm}/clients/.... For example, GetClientAsync, UpdateClientAsync, etc.
However, looking at the documentation of Keycloak, the API wants the Id property of Client, not ClientId. Because the parameter gets pasted into an URL, your code still works as long as the Id is supplied in the call, obviously, but the name of the parameter is misleading. Using ClientId in place of Id gets rejected with 400 Bad Request by the API (and Keycloak's own frontend uses the Id in the relevant links, as well).
Is the name of the parameter deliberate? It's very easy to confuse it with Client.ClientId.
Hi,
in Keycloak.Net.Core/Clients/KeycloakClient.cs (and elsewhere where client info is required), there are methods that take
string clientIdas an input parameter to generate URLs to/admin/realms/{realm}/clients/.... For example, GetClientAsync, UpdateClientAsync, etc.However, looking at the documentation of Keycloak, the API wants the
Idproperty of Client, notClientId. Because the parameter gets pasted into an URL, your code still works as long as the Id is supplied in the call, obviously, but the name of the parameter is misleading. UsingClientIdin place ofIdgets rejected with 400 Bad Request by the API (and Keycloak's own frontend uses the Id in the relevant links, as well).Is the name of the parameter deliberate? It's very easy to confuse it with
Client.ClientId.