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
19
votes
5 answers

Keycloak: Could not find resource for full path

I am trying to get the REST API of keycloak to work. Thanks to this post I was able to get the token. But when trying the example for the list of users in the first answer, I get the error: "error": "RESTEASY003210: Could not find resource for full…
flololan
  • 373
  • 1
  • 2
  • 13
15
votes
3 answers

How to update custom attribute via Keycloak REST API

Is it possible to update the value of custom attribute via Keycloak REST API? For example, which endpoint to use and how to construct a request body for the attribute that was created here. Thanks!
kvitaliy
  • 191
  • 1
  • 2
  • 5
14
votes
3 answers

Revoke Keycloak access token

I am using Keycloak to secure my react front-end and node.js back-end. These clients are protected using role based authorization. My front-end application registered in Keycloak as a public client and back-end registered as bearer only client. When…
13
votes
5 answers

Keycloak Get Users returns 403 forbidden

I create token using http://localhost:8080/auth/realms/{realm_name}/protocol/openid-connect/token endpoint. grant_type=client_credentials client-id: ------------ client-secret: 78296d38-cc82-4010-a817-65c283484e51 Now I want to get users of realm.…
13
votes
7 answers

Keycloak Invalid token issuer

I have a mobile app(react-native), a resource service(spring boot) and Keycloak Authenticatioin Service(Auth-Service). Client makes authentication directly with Auth-Service and gets the access token. When I do a request to the resource service, the…
9
votes
2 answers

Keycloak redirect page shows We are sorry.. page not found

I have deployed keycloak on my EKS cluster and able to access dashboard successfully and created a new realm already. So I thought of testing my keycloak, and went to https://www.keycloak.org/app/ for testing. I have created a client with the root…
8
votes
1 answer

How to protect frontend and rest API with Keycloak

I am very new to Keycloak server and want to use it to protect my front-end app and the backend rest API which are also open over the internet. So far what I understand and did is to create 2 clients on Keycloack, 1 is for frontend which used Client…
8
votes
0 answers

Why does keycloak use HS256 algorithm to sign access token when client settings specify RS256?

I have the following setup with a keycloak authentication server and an application: user logs in on application client side, send un/pw to server application server sends un/pw to keycloak server for a token keycloak server sends a token back to…
sisisisi
  • 481
  • 7
  • 17
6
votes
1 answer

How to generate and use login action token for Keycloak user update profile in external mail template

Our backend is currently using the KeyCloak Admin Client API (Java) to Create users Create roles Assign roles to users Executing actions emails (“UPDATE_PASSWORD”, “UPDATE_PROFILE”, “VERIFY_EMAIL”) Our flow however needs to support the following…
ddewaele
  • 22,363
  • 10
  • 69
  • 82
6
votes
2 answers

How to get id (not clientId) of client in keycloak?

When creating a new client in Keycloak service through sending the post request to /{realm}/clients, both clientId and id are optional fields in post body. If I didn't specify them, keycloak will generate it automatically. Then I found when I…
bubu0321
  • 497
  • 1
  • 6
  • 18
6
votes
1 answer

Keycloak token exchange across realms

We use Keycloak 12.02 for this test. The idea is that we have a lot of customers, that we all have in their own realms. We want to be able to impersonate a user in any non-master realm for an admin/support user in the master realm. The flow would be…
6
votes
0 answers

jHipster, Keycloak - How to update user data on keycloak correctly?

I'm trying to figure out the best method to exchange user information between a Spring application, and an Identity Provider. To be specific, it's an application generated with jHipster, using Keycloak as the IdP. The data exchange can be done…
funder7
  • 1,622
  • 17
  • 30
6
votes
1 answer

How to set user attribute value in Keycloak using API?

How I can set user attribute value using Keycloak Rest API?
max_b
  • 151
  • 2
  • 10
6
votes
3 answers

Keycloak :REST API call to get access token of a user through admin username and password

I have a requirement where I need to get an access token of a user. I am aware of the admin username and password and hence can get the access token of the admin. Is there any rest API that can provide me access token a user using the above data?
user7131571
  • 239
  • 2
  • 3
  • 12
6
votes
3 answers

Spring Cloud Gateway redirects to Keycloak login page although Bearer token is set

I am using a setup with Keycloak as Identity Provider, Spring Cloud Gateway as API Gateway and multiple Microservices. I can receive a JWT via my Gateway (redirecting to Keycloak) via…
1
2 3
31 32