Questions tagged [keycloak-rest-api]

This tag should be used for questions related to the Keycloak Admin Rest API. For instance, "is there an endpoint where I can request X information about the users?"

The Keycloak features provided by the Admin Console can be triggered via the Keycloak's Admin Rest API.

472 questions
3
votes
3 answers

How to retrieve the private keys from keycloack realms keys?

I am trying to get private keys from keycloack realms keys . I am able to get public keys using Open-id/certs api.please let me know if able to get private keys of realms in keycloack.
3
votes
1 answer

Keycloak 17: Unsatisfied dependency for type org.keycloak.models.KeycloakSession and qualifiers [@Default]

We are using keycloak as IDP and have some custom plugins/Spi, we are in process of updating our keycloak instance to version 17 Quarkas distribution and the SPIs began to break (error below) during keycloak build process. I've made sure that there…
Akhil
  • 1,184
  • 1
  • 18
  • 42
3
votes
2 answers

How do i pass a Bearer Token dynamically with Quarkus Microprofile Rest Client?

I'm trying to call a Keycloak Admin REST endpoint to create a keycloak user in my code and it requires the request to have a Bearer token added to the Authorization header. I need a way to pass the token dynamically to the rest client. I have to…
3
votes
0 answers

Upgraded to Keycloak 16.0 - Impersonation NOT working - Though KEYCLOAK_IDENTITY and KEYCLOAK_SESSION Cookie are created

Upgraded to Keycloak from 3.4.0 to 16.0 - Impersonation NOT working - Though KEYCLOAK_IDENTITY and KEYCLOAK_SESSION Cookie are created. I need to provide the impersonate functionality outside of Keycloak Admin Console, the very similar to…
3
votes
0 answers

Keycloak verify email using execute-actions-email endpoint

My current user account setup flow After user creation, he receives an email that is sent using execute-actions-email endpoint to his email to continue his account setup by adding UPDATE_PROFILE, UPDATE_PASSWORD, VERIFY_EMAIL actions to the…
3
votes
2 answers

Is there any way to get users by multiple usernames[Keycloak Admin Rest API]

I am new to this keycloak user management. Basically I want to fetch users using "IN" condition on username field
venkat.s
  • 120
  • 1
  • 6
3
votes
1 answer

How can I resolved Client requires user consent in keycloak?

I need to add user consent in keycloak user when user is created. I am using API http://localhost:8080/auth/admin/realms/master/users and Turn on and try to create the users but I am getting error like: Client requires user consent I don't know…
Dhaval
  • 868
  • 12
  • 22
3
votes
1 answer

How can I verify token and get user details?

I implemented keycloak in my Node.js application. For login, I used API: http://localhost:8080/auth/realms/master/protocol/openid-connect/token It returns the login user's token if the username and password are correct. Now I need to pass this…
3
votes
1 answer

Is it possible to create keycloak users without admin credentials?

I have a spring boot application which use keycloak for user management. But the keycloak instance is a production one and I don't have admin credentials. I following keycloak realm information. #Keycloak…
Ruchira Nawarathna
  • 1,137
  • 17
  • 30
3
votes
1 answer

How to create mapper for each user attribute in Keycloak via REST API?

How do I create Protocol Mappers with the following values (as seen in the attached image) via Keycloak's REST API? I couldn't find it in the documentation - I did find this: Protocol Mapper - but the ProtocolMapperRepresentation takes in a Map and…
Saturnian
  • 1,686
  • 6
  • 39
  • 65
3
votes
2 answers

Keycloak : implement "reset password" (as admin) flow same as "forgot password" (as user)

I would like to implement this authentication flow in Keycloak: A user creates an account by typing only his email The user is logged in and can access my service 2'. At the same time, an email is sent to him, allowing him to "finalize" his…
John Smith
  • 41
  • 1
  • 4
3
votes
2 answers

Why keycloak gets unauthorized on page refresh?

I have successfully integrate keycloak with reactJS now when i refresh the page keycloak.authenticate get false and it ask credentials again. I have search on internet also, they suggest to pass token and refresh token in initOptions props and i…
hu7sy
  • 983
  • 1
  • 13
  • 47
3
votes
1 answer

Keycloak get user password

In my project, I need to get current user password from Rest API. I searched keycloak 4.8.3 final documentation but I could not find it. With admin user I can change password without knowing the current password. But my logged in user can be admin…
Neo
  • 467
  • 1
  • 3
  • 17
3
votes
0 answers

user setup in keycloak with organization information

I am looking for best recommended approach to create / manage users with organization name and id in Keycloak ( through a html form ) I read following documentation but cannot find a straight forward way to manage users there with organization name…
ATHER
  • 3,254
  • 5
  • 40
  • 63
3
votes
1 answer

Keycloak-admin-client always returns null in springboot

I using the keycloak admin client in my app org.keycloak keycloak-admin-client ${keycloak.version} and in my code I…
Fabio Ebner
  • 2,613
  • 16
  • 50
  • 77