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
0
votes
1 answer

How to add policy to Keycloak - UI crashes

I'm trying to enable flow when some admin user by some admin client is able to create users and obtain their access tokens to be used for another clients. I have KeyCloak setup with token exchange and fine grained authz enabled and configured…
nomysz
  • 187
  • 1
  • 9
0
votes
0 answers

Keycloak Java Client Get Fetching Token

I need to obtain rpt in order to register new users in my app. Keycloak.json { "realm": "master", "auth-server-url" : "http://localhost:8180/auth", "resource" : "admin-cli", "public-client": true } Fetching the…
Muhammed Ozdogan
  • 5,341
  • 8
  • 32
  • 53
0
votes
1 answer

Openid-connect or SAML 2.0

Our current Application Backend is in Spring Boot 2(RestAPI's) and Angular in the front-end. Once Authentication is done it currently uses JWT(Bearer) to perform create, update, and delete resources via passing Authorization headers for RestAPI's.…
0
votes
1 answer

Want Keycloak Rest API Request format for sending otp in case of multiple credentials are present

I have two devices set for a user in case of Otp generation for Multi Factor Authentication.For Browser, It is asking me to choose the device. I want to achieve same from Rest api. Kindly suggest. Currently i am using below request but 401…
0
votes
1 answer

Keycloak Admin REST-API Synchronize federation mapper

I am using Keycloak 9.0.3 with a LDAP-user federation, with edit mode = WRITABLE and Import Users = on. I am developing a spring boot application that should call the Keycloak REST API to create, update, delete users and groups in LDAP. I also…
Rasha Elsayed
  • 660
  • 1
  • 7
  • 22
0
votes
0 answers

Keycloak admin redirection exception

I m trying to create a user in Keycloak using client credentials flow from my spring boot app. I have a client created in Keycloak and grabbed the clientId and clientSecret from it (pasted the config for reference). While calling the create method I…
0
votes
1 answer

Keycloak Admin API - Custom user id when creating user and assigning multiple users to a role

I have 2 questions regarding Keycloak Admin API: 1) Is it currently possible to assign a custom user ID when creating a user via Keycloak admin API? I know it is not possible a few years back. 2) I am able to assign multiple realm roles to a user…
user2473078
  • 83
  • 1
  • 9
-1
votes
0 answers

Custom endpoint does not work in Keycloak v21.1.0

I do as in this project https://github.com/keycloak/keycloak/tree/main/examples/providers/rest. I collected everything in one jar and put it in the image of the Keyclock version 21.1.0 in /opt/keycloak/providers. However, in the end nothing opens at…
-1
votes
0 answers

how to call an api and check the response of it during an authentication flow in keycloak?

I want to call an API after user enter their credentials and allow users to access the client only based on the API response. That is how we can call the API after Username Password Form, check it's response and continue/stop remaining auth…
Amal
  • 9
  • 5
-1
votes
1 answer

why don't create an initial admin user in keycloak?

enter image description here request url: http://localhost:8080/ request body form data: username: admin password: 12345 passwordConfirmation: 12345 stateChecker: HvbmSO7g6Qg13gLhqF-lStA_WBZDxOX6s5Yy3TB4XRg error: POST http://localhost:8080/ 403…
-1
votes
1 answer

Keycloak spring-boot spring-security spring-security-oauth2 error 401

Keycloak spring-boot spring-security spring-security-oauth2 Schema: EurekaServer - Spring Cloud Gateway - Microservices Hello, I am doing a project using springBoot 2.7.11 and Keycloak 18.0.0 for security and role management, spring cloud version…
-1
votes
1 answer

How to solve Keycloak POST request problem?

I'm using keycloak to protect my restapi endpoints. I have a permission bot /bonuses/* permission and i can get result 200 for GET /bonuses/list endpoint. But I'm getting an unauthorized errors for POST /bonuses/create endpoint. I guess there is a…
Murat Karagozgil
  • 178
  • 1
  • 2
  • 13
-1
votes
2 answers

Keycloak Spring boot logout from session

Am facing a problem that i don't know how to end the session for a user I already use this one : https://{server}/auth/realms/{Realm}/protocol/openid-connect/logout?id_token_hint={token}& post_logout_redirect_uri={URI TO REDIRECT } also am using the…
-1
votes
3 answers

KeyCloak /userinfo not returning user info, returns what appears to be a token

Here is the flow I am attempting in postman. Get access token {{server}}/auth/realms/{{realm}}/protocol/openid-connect/token I get the access token. I then run the next query {{server}}/auth/realms/{{realm}}/protocol/openid-connect/userinfo I…
Michael McDermott
  • 344
  • 3
  • 6
  • 14
-1
votes
1 answer

How to access a secured API in the frontend?

There is a lot of good content on the internet that explains how to secure a Spring API with Keycloak: Create a Client that represents the API Service in Keycloak and use a link like the one below to get the access and refresh…
1 2 3
31
32