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

Keycloak: cannot get token from a custom spi

I have to create two rest services via keycloak. The first one sends a verification code to a phone number. The second one grant a token to a user if the verification code is correct for a given phone number. I have created a module with a custom…
gisly
  • 673
  • 1
  • 8
  • 30
0
votes
1 answer

How to get authenticated user from KeycloakSession inside RealmResourceProvider

I am writing a Keycloak RealmResourceProvider and I need access to the currently authenticated user, I use keycloak 15.1.1 and java code provider. I am trying to implement a custom API with RealmResourceProvider I tried with : private final…
simonC
  • 4,101
  • 10
  • 50
  • 78
0
votes
1 answer

How to use social signin for custom react page with keycloak

I want to implement something like login with google but with keycloak and also I want to use custom react page. For instance, there is a google icon button and after clicking on that button user should be redirected to social login. Also is there…
0
votes
0 answers

Keycloak type=LOGIN_ERROR error=invalid_user_credentials w/ sha512

I installed a keycloak server ( docker jboss/keycloak ). I am trying to create a user via the API with a password hashed using salted SHA512. User password is 1234 ( obviously a terrible password ). Here is the password hash I have, I generated it…
dlublink
  • 1
  • 1
0
votes
1 answer

Keycloak PUT Group APIs failing in case of large payload size

We have been using Keycloak attributes in groups to store some large payload values. But we have noticing when adding a large payload like the below example: { "id": "42f508af-03f1-42ee-aafa-721cd06a9962", "name": "test-group", "path":…
Kurian Benoy
  • 849
  • 6
  • 12
0
votes
1 answer

Getting error while triggering a basic http call from ‘Keycloak’ to ‘Azure ADB2C’ for token response

While making a basic http calls from “Keycloak” to “Azure ADB2C” to retrieve a token as a response from AD B2C. The current flow looks like this. For a Java web application which is integrated with the ‘Keycloak’ as an identity broker, and from the…
0
votes
1 answer

Keycloak password reset email custom link

We use keycloak API rest to send email password reset to users. The application can change the theme dynamically so we are using a wrapper for the authentication that's passing the requests to keycloak. As well we prefer not to expose keycloak. To…
Roedit
  • 31
  • 4
0
votes
0 answers

Edit authorization settings client keycloak during registration

Is there any possible solutions to update a client authz settings with a registrationAccessToken (without passing by admin credentials) ? Suppose my keycloak server (v15.0.2) is at https://keycloak.local What I am to try is this: I create a client…
0
votes
0 answers

Keylcloak admin api returns invalid credentials

I am trying to authenticate to keycloak as a root user. I have the following config and I already have a root user which has been assigned realm-management roles I am using the keycloak nodejs client in the following manner, but I am met with an…
Bazinga777
  • 5,140
  • 13
  • 53
  • 92
0
votes
1 answer

How can i implement logout feature in NodeJs with keycloak

I'm trying to implement a logout functionality with keycloaks which is running as a docker container. When tried with postman I'm getting a 204 response, even after that I am able to access the web pages without having to login again (Hence logout…
0
votes
1 answer

Keycloak list all Realms from a SPA

I am implementing an angular App and want to list all existing Realms on the keycloak Server. I configured the realm-management Client Roles of the User Logged in. Now I am able to List all Realms in a Rest-Client…
csbrogi
  • 424
  • 3
  • 14
0
votes
1 answer

Add role to user using Keycloak Admin Java API

The goal is to manager user's roles from my Angular front. The front will send me updated roles given for a user. Actually the user have ["ROLE_A"] The administrator updates user's role. Now the front sends me : ["ROLE_A","ROLE_B","ROLE_C"] for the…
0
votes
2 answers

Keycloak : Use service account with token that never expire

I'm using Keycloak and SpringBoot API. My goal is to be able to use the keycloak Admin REST API with a token that is generated only one time. I have enabled the service account, but the token expires after few seconds. What can i do to generate a…
Kévin
  • 497
  • 10
  • 37
0
votes
1 answer

Keycloak - Synchronize some users between two instances

I'm trying to synchronize some users (by custom attribute) between 2 Keycloak instances, including credentials. The use case: Keycloak is sitting in AWS, and we want to have a secondary instance on other region, for high availability even in case of…
0
votes
2 answers

Is it possible for keycloak to filter users by custom attribute

I'm trying to create a UMS that uses the Keycloak's REST API. Some users will be users and some other managers. To differentiate them, they'll belong to different groups and they'll inherit a different set of roles. All of the users will have a…
Chris K
  • 347
  • 1
  • 3
  • 16