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

Use keycloak as IDP broker for multi-tenant application

I am trying to use Keycloack for a multi-tenant application, apparently , using a realm per tenant is not a good idea as per this post so, what I was trying to do is to use something else to save the tenant id to the registered users. for users…
0
votes
1 answer

How can I add user consent in keycloak with create user or other API(s)?

I am using keycloak API: http://localhost:8080/auth/admin/realms/master/users for creating user it's working fine but I need to add user consent with this API or by any alternative API(s), How can I do this, Thanks in advance.
Dhaval
  • 868
  • 12
  • 22
0
votes
1 answer

How Can we use Policy-enforcer dynamically in Java Springboot?

Saurav Chaurasia Fri, May 7, 5:00 PM (20 hours ago) to me Like I am able to use the static Policy enforcer by providing the path and method and resource into the application.properties. But in realtime application we will be having N number of roles…
0
votes
1 answer

"Service Account Role" section using the Keycloak Admin REST API

I want to assign a custom role (ca_boarding_administrator_role) in the "Service Account Role" section using the Keycloak Admin REST API. My client (cq-boarding-client) has the access type "confidential". My goal is to have it available in the…
Florian Boehmak
  • 431
  • 4
  • 20
0
votes
1 answer

Security implications of using Keycloak as an REST API and avoiding Keycloak forms all together?

I'm currently working on a project where we are using OpenID Connect and Oauth2 with Keycloak's default forms. We have requirements to implement 2FA. In an ideal world we'd scrap the keycloak forms all together and just use keycloak as a headless…
0
votes
1 answer

Need to login from Java Application with Azure AD Credentials via Keyclock

I already successfully integrated Azure Active Directory with Keyclock using Identity Providers(Microsoft) With my existing JAVA Application, im able to login with the Keyclock users. Now my requirement is, After successfully integrated Azure…
0
votes
0 answers

keycloak session is not terminated after successfully logout

I am using keycloak.logout() to logout from my angular4 and angularjs app. i can logout successfully, but after logout when I go to keycloak server, I am getting my session active. how to resolve that issue?
0
votes
1 answer

Keycloak 401/403 HTTP Error (Spring Boot)

I've tried integrating Keycloak as an authentication feature for my Spring Boot App, but whenever I make requests through Postman I get 403 errors (or 401 if I attempt to set some authentication token - thus far I've only worked with JWTs and there…
Vijo
  • 25
  • 6
0
votes
1 answer

User creation with keycloak

I am trying to create user with keycloak's /users endpoint in a spring boot project . These are the steps I have followed First created an admin in master realm and admin-cli client. Used that to get instance of keycloak for further…
0
votes
0 answers

Securing APIs and Keycloak

I deployed a Standalone Keycloak (KC) server and I developed one API that acts as a resource server(it is not supposed to handle login/registration of users etc) with Spring Boot. I want this API to be secured with KC JWT tokens. I expect every user…
0
votes
1 answer

Is there a way to query keycloak user on user attributes?

I am planning to use keycloak as Identity provider for one of my project. I wanted to extend the user information by adding user attributes, but the problem is I also want to be able to query based on that attribute. Did some research but couldn't…
0
votes
2 answers

Listing the groups a user is a member of, using keycloak-js?

Our site is using keycloak for user auth, in a Vue app, with the user being added to a number of groups on the Keycloak server. The problem is that I am not sure how to discover the groups the user is a member of? Looking at Vue.prototype.$keycloak…
Andre M
  • 6,649
  • 7
  • 52
  • 93
0
votes
0 answers

Java SpringBoot Keycloak Rest Api Jwt Auth Postman Didn't find publicKey for kid

I'm creating a microservices project. The idea is that a reactjs application get a token from Keycloack and send this jwt token to a springboot rest api in the backend. I'm using docker compose to manage the containers in my local machine. With…
fcammisa
  • 1
  • 1
0
votes
1 answer

How to configure LDAP in Keycloak dynamically

I am using Keycloak as UAA for my project, and I am able to create a new realm in keycloak dynamically via java code. Now i would like to add LDAP support for the relam which is created in keycloak.Is there any option to do it dynamically using java…
Krishnan
  • 185
  • 3
  • 11
0
votes
0 answers

Keycloak login form uses two subsequent http and https requests to authenticate

We've implemented use of Keycloak as authorization service on our project. Upon Log In, after user credentials are filled in, the Keycloak log in form sends two subsequent requests and one of these is http that contains in response headers exactly…