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
1
vote
1 answer

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Filter execution threw an exception] with root cause

i am trying to connect my Spring Boot application with Keycloak. The keycloak login is a passwordless login (OTP code in an authenticator app). There is an external page, where everybody can access, when the user clicks in "customers" the user must…
1
vote
1 answer

How to enable users to delete their own Keycloak account using API?

I have an Express.js CRUD application and I use Keycloak 18.0.2 for identity management. Keycloak handles Google and Facebook Single Sign-On (SSO) for my application, and all authentications are managed through Keycloak. Currently, users are…
1
vote
0 answers

How does Keycloak protect the private key used to sign JWT tokens with Quarkus?

I am using keycloak in the last version with quarkus, and i am trying to get or at least to know where keycloak save the private key to sign the JWT tokens and how keycloak protect it, i see a lot of things in the documentation, but is confusing for…
1
vote
1 answer

Keycloak - Customize reset credentials flow

I need to customize the reset credentials flow, by intercepting the password and OTP authentication. I made a few tests extending org.keycloak.authentication.authenticators.resetcred.ResetOTP and…
maxivis
  • 1,727
  • 3
  • 21
  • 35
1
vote
0 answers

Access token generated by one keycloak instance is invalid on other

Keycloak 20.0.5 Problem statement On local i have set up keyclocak cluster with two nodes i am using following infinispan configuration. But access token generated by one node can't be introspected on other. Initially I was thinking it might be…
1
vote
0 answers

Error Integrating React JS with Keycloak 20.0.5 using @azure/msal-browser module

Hi I was attempting to integrate Keycloak version 20.0.5 with React for authentication using @azure/msal-browser. The integration is successful with versions lower than 20 but with versions above 20 I get the error below: [org.keycloak.events]…
mithamovic
  • 31
  • 4
1
vote
1 answer

How to add user attributes to registration form in Keycloak?

I've created a new realm (out of the box and using user account for login/registration) in Keycloak and enabled the user profile, added a new attribute - shop The user attribute Because this attribute is required, I want it to be in the default…
vito huang
  • 4,228
  • 7
  • 26
  • 24
1
vote
1 answer

Keycloak Admin UI 21.0.1

I am using Embedded keycloak v20.0.5.It was running fine until I upgraded it to 21.0.1. Following this post (https://www.baeldung.com/keycloak-embedded-in-spring-boot-app). When i click on User or group its giving me this error b.map is not a…
1
vote
0 answers

Set keycloak default theme

Is there a way to set default Keycloak theme directly in the keycloak-server.json ? I tried below but it didnt work. "theme": { "staticMaxAge": "${keycloak.theme.staticMaxAge:-1}", "cacheTemplates":…
jane
  • 211
  • 9
  • 30
1
vote
1 answer

Keycloak Rest Api Reset password via Postman

I am trying to leverage the Keycloak Rest Api functionality to reset passwords for the users configured in Keycloak via Postman. Steps performed: I got the access token from http://127.0.0.1:8080/realms/:realmname/protocol/openid-connect/token for…
hs27
  • 67
  • 1
  • 8
1
vote
1 answer

Get Clients and Resources in Keycloak authorization server through SPI

With the help of SPI (Service provider interface) in keycloak, it is possible to include users from external databases to be part of the users in keycloak. (https://www.keycloak.org/docs/latest/server_development/#_user-storage-spi) But as I was…
1
vote
0 answers

How can I set multiple roles in the keycloak.protect()?

I'm using keycloak.protect('user') in nodejs (keycloak-connect lib) for my APIs to allow only user role and it works. How could I add multiple roles in the keycloak.protect()? I tried with the keycloak.protect(['user','admin']) but it allows anyone…
pasquy73
  • 563
  • 3
  • 13
1
vote
1 answer

Latest keycloak server v21.0.0 admin api - create a realm failed

Keycloak server v21.0.0 - Windows 10 - Admin API - create realm failed How i fix the issue? what will be the issue? please help/support start the server in dev mode set KEYCLOAK_ADMIN=admin set KEYCLOAK_ADMIN_PASSWORD=admin .\kc.bat start-dev…
Narayana Basetty
  • 129
  • 3
  • 13
1
vote
0 answers

Keycloak: Custom login page with React

I'm new to Keycloak and I was wondering if it is possible to have a custom login page made with React which can have an authentication on Keycloak or if I could customize Keycloak login page with a React form. A little help would be…
1
vote
1 answer

Keycloak API works for admin-CLI client only

I'm trying to get a list of users by a specific role using but I get a 403 forbidden error using a custom-client generated access token GET:…
shAkur
  • 944
  • 2
  • 21
  • 45