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

Keycloak REST API doesn't let me edit user data

I just started playing around with keycloak and openldap. I was able to link openldap with keycloak and also created some mappers to get user data through OAUTH2 authentication. Now I am trying to change some editing of user data through keycloak…
lukasv90
  • 106
  • 3
0
votes
1 answer

Keycloak user attributes on profile update cleaned - how to persist and only editable by admins

I'm setting several custom attributes for the users within the API by an custom application. Problem is, my custom attributes are deleted, whenever the user updates his profile. Possible also in other situations. I'm wondering about that.…
Airwave
  • 136
  • 4
  • 15
0
votes
0 answers

Keycloak authentication on Google Sheet Script

We are working on integrating our integrating our REST Project with google sheet. This project has keycloak authentication (Basic Authentication). We are trying to achieve something like following Adding a menu in google sheet. Clicking on this…
0
votes
1 answer

How to set Max Login Failures in keyCloak client?

I'm using keycloak client version 12.0.0. Can anyone guide me how to set Max Login Failures for keycloak programmatically ? I cannot not find it anywhere in Keycloak document. Thanks a lot.
mret
  • 13
  • 4
0
votes
1 answer

Brute Force Detection - Keycloak

We start using Keycloak as Identity and access management for our new project design and enabled Brute Force Detection for my newly created Realm. It’s working, but in my use-case, I have to notify my user they have to wait another 30min to try…
0
votes
1 answer

Is there any way to create users with roles assigned in keycloak using node?

i was trying a code to upload all users to keycloak user list and it works well. i used an excel file to read then push each row into keycloak field but i was thinking to add roles to each user at the same time. when i try out this code it says role…
0
votes
1 answer

In Keycloak, can you use a JWT to get a caller's identity?

We would like to have users authenticate to a Slack app by providing their current Keycloak JWT as a one-time authentication procedure. This would allow us to associate their Slack user ID with their Keycloak user ID. However, I can't find any…
Becca Petrin
  • 1,494
  • 14
  • 13
0
votes
1 answer

keycloak admin client returns 400 on executeActionsEmail()

The code was working before and we are not really sure when it broke because we updated keycloak quite frequently. Would be nice if anyone knows how to fix or can tell me how to find out (maybe from the keycloak side) why the request is…
Peter Lustig
  • 1,585
  • 1
  • 18
  • 34
0
votes
1 answer

jhipster Reload OIDC token after modifying user last name with keycloak rest admin API (Oauth2)

I have Jhipster running with Oauth2 + Keycloak. I have a use case where I need to update user last and first name from the Jhipster React UI, so I used the Keycloak admin client via a service account to update user attributes in Keycloak. The…
0
votes
1 answer

Keycloak add attributes to user via API and 409 error

I am trying add attribute to existing user at Keycloak:10.0.1. @Override public void addAttribute(String userId, String value) throws UserDoesNotExistException { log.info("Trying add attribute to user: " + userId); Keycloak keycloak =…
TomasH
  • 51
  • 1
  • 9
0
votes
0 answers

keycloak policy enforcer spring boot

Keycloak policy enforcer not working, Sprint boot application. I use spring boot v 2.3.1 with Keycloak version 10.0.2, i need setup policy enforcer into my app, autnentication part with keycloak work, but if i add policy enforcer config into…
0
votes
1 answer

Not able to communicate between keycloak and gatekeeper

I am totally a newbie in key-cloak and keycloak-gatekeeper I am running keycloak on my machine with address localhost:8080 where as my gatekeeper is running on minikube environment Below are the my configuration and deployment file apiVersion:…
0
votes
0 answers

Keycloak: obtain access token by username or userid

Hi and excuse me for large text. I have a REST app with a module for communication with Keycloak. I use Keycloak "admin" user in realm to manage users. Also, perform REST calls to obtain an access token for user using username and password. So my…
0
votes
1 answer

Getting 400 Bad Request from Rest API for Keycloak with Consent Required ON

I am getting HTTP 400 Bad Request from key cloak java code while Consent Required is set as ON. I am using the following code: String realm = authenticationData.getRealm(); String clientName = authenticationData.getClientName(); String userName =…
Sagar Koshti
  • 408
  • 2
  • 6
  • 15
0
votes
1 answer

How to avoid adding user to all groups with a resource

New to using Keycloak and I am trying to understand assigning of roles to users. This is the format I use. I create roles and users and create groups with certain roles. I then assign users to groups to have the permissions based on roles in the…
vinayawsm
  • 845
  • 9
  • 28