Relative Content

Tag Archive for keycloakkeycloak-services

Add service account roles using Keycloak SPI

I am trying to create a client using keycloak SPI. The code I used to create the client and add other client information is as below. My requirement is to add all the possible relam-management roles have to added to this user.

Generate token from Keycloak SPI

Good day all, I am trying to generate token with client id and client secret from an custom keycloak API, this token will further used by other APIs to communicate with keycloak admin APIs.

How to create a user in Keycloak SPI?

Good Day All, I am trying to create a user inside keycloak custom API. Right now I am using keycloak-admin-client to create user. But I don’t want to use keycloak-admin-client.

User without firstName and lastName working when migrating from KC23 to KC24

When I migrated from KC23 to KC24, Users without firstName and LastName are working and I am getting JWT Token for them
However if I install KC24 fresh, and I create user without firstName and LastName, I am not getting any jwt token and I got the error that “Account Not fully Setup”. I do understand that keycloak has made it necessary to have firstName and lastName for user.
But my question is that when I am migrating from KC23 to KC24, why are the users working without firstName and lastName.

Keycloak user session message customization

I am trying to access the update user account mail from keycloak. But i am already logged in as another user in the keycloak. So, a session message is generated as below,

Calling keycloak API from Keycloak SPI

I am trying to call keycloak admin API from custom keycloak API created by me. Since i am inside the keycloak while calling the API i am using base URL http://localhost:8080.