Replies: 2 comments
-
|
I have the same problem as you , but I'm in the 26.0.5. So I take a look to the gui how is doing it an figure it out that the problem it was that the library was calling to Plus that change in the url the fetchRole they put it as a field of the policy instead of in the config. So I end creating a function that call directly the endpoint here you have it just in case you want to use it With this function everything works fine |
Beta Was this translation helpful? Give feedback.
-
|
Maybe its a mistake with ts typings & rest api docs > PolicyRepresentation because in the admin UI sends a fetchRoles attribute when creating role policies and if you pass fetchRoles using @ts-expect-error to bypass the type check, it works correctly await kcAdminClient.clients.createPolicy(
{ id: clientUuid, type: "role", realm: params.realm },
{
...stuff,
// @ts-expect-error -- ..........
fetchRoles: true,
}
); // works fine |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Keycloak/keycloak-admin-client version: 25.0.6
Hi! Is setting
fetchRolestotruepossible?this doesn't have it, and I've tried with
configlike this:which results in:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions