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
3
votes
2 answers

Failing to create user with password via Keycloak Rest API

I'm trying to migrate users from existing database. Passwords are encrypted with sha512. I use Keycloak 10 with the REST API. I have read the CredentialRepresentation and y Have try put JSON into the strings for attributes secretData and…
jeremy.raf
  • 133
  • 2
  • 12
3
votes
1 answer

Keycloak API to create users returns a 403 Forbidden

Experimenting with Keycloak as an Identity Provider. I'm running it by using the ./standalone.sh script. So, I obtain the access_token like this: curl --request POST \ --url http://localhost:8080/auth/realms/master/protocol/openid-connect/token \ …
Saturnian
  • 1,686
  • 6
  • 39
  • 65
3
votes
0 answers

Unable to run Embedded Keycloak in a Spring Boot Application

I am using Keycloak Embedded in a Spring Boot Application which I imported the code from GitHub. I got the following error when I run my application. I am using KeyCloak 11.0.2 version as you find the dependency below. KeyCloak Dependency: …
Tonyukuk
  • 5,745
  • 7
  • 35
  • 63
3
votes
2 answers

How to set custom theme for master realm in keycloak?

I have bundled a custom theme as part of keycloak docker image. On starting the keycloak cluster, the custom theme need to be set in master realm. How can I configure the master realm to set with custom theme?
sreekesh.s
  • 158
  • 1
  • 8
3
votes
1 answer

How can I create a user with a password in Keycloak using the REST API?

I can create a new user using the REST API at http://localhost:8080/auth/admin/realms/myRealm/users but the user doesn't have a password. Following this post and this post I added credentials to the json like this { "firstName":"functest", …
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
3
votes
1 answer

Keycloak- passed parameter to meet password policy requirements

I have defined get Keycloak method on my Symfony project. I am getting excepted results in the matter of array where I am extracting the list of password policies. Currently it's set just 'not username' rule: I could not find any other endpoint…
joopeerr
  • 183
  • 1
  • 1
  • 12
3
votes
1 answer

Why would there be a need for more than 1 realm in Keycloak?

I am new to Keycloak and have been reading the documentation. There is a term realm that I understand as a unique user/client management instance. Realms cannot communicate. I am curious why anyone would have more than 1 realm besides master. …
tswanson-cs
  • 106
  • 13
3
votes
2 answers

KeyCloak - ingress does not allow connecting over https service

I have installed keycloak using helm. A Traefik ingress is created to allow access from public After the admin password is created from localhost:8080, i am able to login into admin console only when i am port forwarded and local access. When i use…
3
votes
1 answer

How to set custom Attributes in keycloak JWT?

I am making a storage provider that federated user from my local database my question I need to set the attributes of my custom user in the returning JWT. I need to carry the user from customStorageProvider to JWTMapper to map the attributes to JWT
David Smith
  • 31
  • 1
  • 3
3
votes
1 answer

How to authenticate user using mobile number in Keycloak

User has a custom attribute phoneNumber in Keycloak. There is a default method for fetching token using username and password but would it be possible to authenticate using phoneNumber / password instead of username / password curl \ -d…
M.R
  • 610
  • 2
  • 10
  • 34
3
votes
1 answer

Keycloak frontend and backend clients

This is related to keycloak clients. My frontend is connected to public client and backend is connected to confidential client. I am able to login, get the code, as I am using response_type=code by turning on "Standard Flow Enabled". This code…
user1168880
  • 75
  • 1
  • 10
3
votes
1 answer

Make user registration requests from my frontend in Keycloak using its API directly

In my Angular application (Frontend) the users can sign-in as following: The user will fill-up a login-form (username or email / password). The user will click on Login and that will hit this endpoint:…
xdeveloper
  • 125
  • 2
  • 9
3
votes
1 answer

How to do forgot password in keycloak via API

We are creating an app that has a feature to reset their password respectively, since we are using keycloak so that thing will be featured via keycloak page itself, but our client need the forgot password will be provided in the app, so i need to…
aswzen
  • 1,512
  • 29
  • 46
3
votes
1 answer

How to add multiple owners on single resource in keycloak

I am working with keycloak UMA. With the help of keycloak I can create the resources in keycloak Authorization option with some basic details name, type, URI, scope, etc and we also have the option for resource owner, with UI we are not able to…
G T
  • 65
  • 4
3
votes
1 answer

Keycloak - Verify user's email using Rest API

I am trying to create a new user and then verify his email address using REST API. To send verification email I am using my own email class in Springboot, so I am not calling keycloak's /send-verify-email endpoint! After I create user, I can see in…
Kuba Šimonovský
  • 2,013
  • 2
  • 17
  • 35