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
0 answers

Is it possible to consume events in kafka from custom keycloak spi

I was exploring on side like whether create realm action can be done via event architecture flow. ie. If a service publish a create realm event to a kafka topic A custom keycloak SPI provider should listen to the topic from kafka Up on receiving…
sreekesh.s
  • 158
  • 1
  • 8
0
votes
0 answers

Keycloak: Optimal Approach for Managing User Heirarchies and Child Groups(Teams)

I scrolled through the documentation of KeyCloak and also set it on my machine to explore. I also explored fine-grained permissions however I didn't get much detail in documentation around the n-level of nested hierarchies. Here…
Ravinder Payal
  • 2,884
  • 31
  • 40
0
votes
0 answers

Ticket Endpoint of keycloak giving 400

I am working on sharing of resources between multiple users using keycloak. After creating a resource when I request for ticket permission I get 400, but the issue is these 400 is not constant some time the response is 200 and sharing is perfect but…
Usama Hameed
  • 129
  • 5
  • 14
0
votes
1 answer

Why does the Keycloak REST API return an "autheticatorFlow" (sic!) attribute when reading authentication/flows?

When reading authentication flows with kcadm.sh get authentication/flows -r master I get this result for the builtin flows { "id" : "cee86f07-db10-4e84-9a5e-a9c6ae1c3703", "alias" : "http challenge", "description" : "An authentication flow…
schrom
  • 1,372
  • 1
  • 22
  • 36
0
votes
0 answers

how can i use const [keycloak, initialized] = useKeycloak() in react js

i'm using api keycloak for authentication onLogin: (email, password) => { return dispatch => { var axios = require('axios'); var qs = require('qs'); var data = qs.stringify({ 'username': email , …
0
votes
0 answers

Angular with keycloak integration gives CORS error for password grant_type

I am trying to integrate keycloak with my angular web application with grant_type "PASSWORD" using my custom login form to get username and password. I have added my client under realm settings in keycloak and enabled Standard, implicit, direct…
0
votes
0 answers

Is there a possibility to automatically login by clicking on verify email link triggered by /send-verify-email

If Keycloak's self-registration form is used, once submitted, it will send an email verification link to that newly registered user. Once the user clicks the link, his email will be verified, and it will redirect him to the redirectUri from his…
Martel
  • 49
  • 6
0
votes
2 answers

How to check if Keycloak OTP 2FA is enable in Angular?

I´m new in keycloak. We have an angular application that use keycloak service to log in and to get some user attributes that we already configured but now i have to check if keycloak OTP required action is enable because if it´s enable I had to show…
0
votes
0 answers

Redirect from Keycloak login page to Application when user deny FB login access

I am using keycloak for IAM solution. Rather than using it directly, I am using Keycloak APIs to handle all the functionalities. Problem : When users redirect to Facebook login page and click "Not now" button, it redirects the users to…
Nitheesram Rajes
  • 138
  • 1
  • 12
0
votes
1 answer

keycloak Spring Security : Unable to login with Bearer token as null

I have integrated the Keylock with Spring boot using @KeycloakConfiguration in SecurityConfig Class, @KeycloakConfiguration @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true, jsr250Enabled = true) public class SecurityConfig…
0
votes
0 answers

angular13 - keycloak cors config is invalid

I am using keycloak authentication app. I am using angular13 in UI. I am sending the post request for login as follows. But the cors settings problem returns. On the keycloak side, I configured the cors settings as follows. But I keep getting…
enrfth
  • 25
  • 1
  • 9
0
votes
1 answer

{'error': 'RESTEASY003650: No resource method found for PUT, return 405 with Allow header'} when updating user data in Keycloak

I am trying to update user info in keycloak by sending put request. Get request is working fine I am getting all the users but Whenever I tried to send put request to update the user data I get this error "{'error': 'RESTEASY003650: No resource…
Usama Hameed
  • 129
  • 5
  • 14
0
votes
0 answers

Getting 401 when try to update user data in Keycloak

I am sending a put request to update partial user data but I'm keep getting 401 even though I am passing the bearer token of admin. code: def update_user(user_id, user_data): import requests headers = dict() headers['Content-Type'] =…
Usama Hameed
  • 129
  • 5
  • 14
0
votes
1 answer

Access to Keycloak admin REST API by admin-cli client only?

I'm trying to do some request by administration REST API through custom client. Client has proper scopes. I get 403. Same issue when authenticate by user (with proper roles). Everything works fine when I change client to 'admin-cli' and use user…
grzesiu988
  • 184
  • 3
  • 14
0
votes
0 answers

Keycloak [15.0.2] - Create a Kerberos user with Admin REST API

Is it possible to create a Kerberos user with the Keycloak Rest API ? I've tried a few times without success. I also have a hunch that it won't be possible. What do you think about it ? [EDIT] I tried something like this for example POST…
T.Rex
  • 111
  • 1
  • 13