Questions tagged [keycloak-services]
608 questions
78
votes
7 answers
Avoid keycloak default login page and use project login page
I am working on creating an angular.js web application and looking for how to integrate keycloak into the project. I have read and watched many tutorials and I see that most of them have users logging/registering through the default login page of…

krs8888
- 1,239
- 4
- 19
- 26
46
votes
1 answer
Generate JWT Token in Keycloak and get public key to verify the JWT token on a third party platform
There is an Endpoint to a backend server which gives a JSON response on pinging and is protected by an Apigee Edge Proxy. Currently, this endpoint has no security and we want to implement Bearer only token authentication for all the clients making…

Amit Yadav
- 4,422
- 5
- 34
- 79
44
votes
2 answers
How are Keycloak roles managed?
Keycloak is a great tool, but it lacks proper documentation.
So we have Realm.roles, Client.roles and User.roles
How do there 3 work together when accessing an application using a specific client?
Sincerely,

Olivier Refalo
- 50,287
- 22
- 91
- 122
40
votes
4 answers
Keycloak, not returning access token if update password action selected
I am calling /auth/realms/master/protocol/openid-connect/token to get access token by sending below content in…

Shailesh Narkhede
- 605
- 1
- 5
- 11
28
votes
1 answer
How to get Keycloak users via REST without admin account
Is there a way to get a list of users on a Keycloak realm via REST WITHOUT using an admin account? Maybe some sort of assignable role from the admin console? Looking for any ideas.
Right now I'm using admin credentials to grab an access token, then…

Borja Canseco
- 325
- 1
- 6
- 24
26
votes
1 answer
Create a User on Keycloack including password from curl command
I have tried to create a user(without giving any password while creating) on keycloak using CURL command, it's success, but not able to know the password to login.
So, how to give password to a user while creating.
and also how to set default…

fayaz
- 261
- 1
- 3
- 3
25
votes
3 answers
KeyCloak User validation and getting token
First of all I am very new to Keycloak and excuse me if something I am asking might be wrong.
I have installed the Keycloak server and I can access the Web UI for the same using:
http://localhost:8008/auth
My requirement is to validate a realm user…

Rohitesh
- 1,514
- 7
- 28
- 51
25
votes
6 answers
Didn't find publicKey for kid ,Keycloak?
I am getting this exception "Didn't find publicKey for kid" while calling endpoint from angular js 2 to the widlfly server .
authentication happened in keycloak , however i am calling about 8 endpoints from different clients (different micro…

Ahmed Gamal
- 1,666
- 1
- 17
- 25
24
votes
4 answers
Cant access keycloak rest API methods *404*
I am using the latest keycloak image in docker and can access the standard admin console at http://localhost:9080. However, I cant seem to access any of the paths specified in the documentation for Admin REST api. For instance, the base path /auth…

Taha Rehman Siddiqui
- 2,441
- 5
- 32
- 58
23
votes
1 answer
Keycloak cookies : KEYCLOAK_SESSION,Oauth_token_request_state, KEYCLOAK_IDENTITY
Can someone please explain the cookies set by Keycloak:
KEYCLOAK_SESSION,Oauth_token_request_state, KEYCLOAK_IDENTITY.
What is the relevance of each cookies?

siddhartha chakraborty
- 425
- 1
- 5
- 12
23
votes
5 answers
Access the keycloak API from postman
I have tried to access the keycloak API from the postman. but it is showing 400 bad request.
I was calling api in the below format.…

Programmer
- 657
- 4
- 9
- 21
20
votes
1 answer
Access Keycloak REST Admin API using a service account (client credential grant)
I like to manage keycloak from my own application:create user & clients, display users & client. As this is not a real user but a machine I would like to use a service account with a client credential grant as proposed in How to get Keycloak users…

Dennis Seidel
- 519
- 1
- 3
- 13
20
votes
3 answers
Keycloak client vs user
I understand that keycloak has built-in clients and we add the users later on.
But in general, what is the difference between a client and a user in Keycloak?

Orkun
- 6,998
- 8
- 56
- 103
20
votes
4 answers
Export all users from KeyCloak
I have a specific use case in which we want to ask Keycloak for all the users and the groups and roles for each user, on a daily basis. For reconciliation purposes with other internal systems.
Currently we are using the provided Keycloak endpoints…

Michel
- 9,220
- 13
- 44
- 59
19
votes
5 answers
KeyCloak : No 'Access-Control-Allow-Origin' header is present on the requested resource
I'm using Angular 8.0.3 and keycloak 6.0.1 to make the front authentication.
Problem
I managed to get to the keycloak login page from my application. After logging in with my login details, an error occurs :
-localhost/:1 Access to XMLHttpRequest at…

Ugo Evola
- 546
- 3
- 8
- 19