Questions tagged [keycloak-services]
608 questions
0
votes
1 answer
Angular 6 and keycloak-angular module: How to load the keycloak url from a server
I'm using the keycloak-angular module (v 4.0.0) in an Angular 6 project.
Now I'm trying to load the Url to the Keycloak to use, from my server (since it can be different depending on the apiKey).
So, in the app initializer function I've tried doing…

aubium77
- 118
- 1
- 6
0
votes
1 answer
How to set Custom User Property in keycloak from java api
I am using keycloak for authentication in my spring application, how can I set some attribute for a user.
I have already added a custom mapper on admin console.

Mr_Hmp
- 2,474
- 2
- 35
- 53
0
votes
1 answer
redirection too many times keycloak
I have been trying to use keycloak authentication and have been stuck on this for a while. This is my code
app.get('/', function(req,res){
res.render('login1');
});
app.get('/login', keycloak.protect(), function (req, res)…

ash007
- 311
- 4
- 24
0
votes
1 answer
Keycloak Permissions not working
I'm using Admin Rest API + Resource management(Protection API) for managing resources and Keycloak UI for CRUD for permissions.
And Entitlement API and Introspect API for checking the user permissions.
Tried to create and delete same permissions…

Geo Jacob
- 5,909
- 1
- 36
- 43
0
votes
1 answer
SSo in different realms in keycloak
I am trying the SSO between multiple realms in keycloak. I have two different realms and user1 is common to both the realms. user2 is specifc for realm one.
I am first authenticating the users against realm1 and realm2. For user1 there are no issue…

Programmer
- 657
- 4
- 9
- 21
0
votes
1 answer
Why does password fields in admin console of Keycloak removes spaces in beginning and end of the password i entered
I want to show an error message when the admin entered spaces either in beginning or end of the password fields. But i noticed that the returned password when i click the reset button automatically removes the whitespaces in beginning or in the end…

LogronJ
- 561
- 2
- 4
- 24
0
votes
1 answer
How to exclude space as input on my regex
^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,15}$
My regex above works fine except it accepts space as input. How can i exclude spaces on my regex?
Any Perl related regex implementation will be fine. Thanks

LogronJ
- 561
- 2
- 4
- 24
0
votes
1 answer
Getting 403 forbidden
I am trying to create the users in keycloak from java application. I am able to create users and also assign roles to the newly created users in the master realm. I have created my own realm and also added some roles in the newly created realm.…

Programmer
- 657
- 4
- 9
- 21
0
votes
1 answer
Creating keycloak custom theme
I have in my UI three views:
starting page (with links to registration and login pages)
login page
registration page
I don't know how to display firstly the starting page. My starting page in my custom theme is the login page (my-site/auth). How…

karolinski
- 577
- 1
- 6
- 18
0
votes
1 answer
Keycloak integration with vertx
I have a requirement to authenticate the users against keycloak when vertx API is called. As I am new to keycloak. Can anyone suggest how I can achieve it.
Thanks in advance

Programmer
- 657
- 4
- 9
- 21
0
votes
1 answer
Joins with Keycloak java admin client
I m trying to understand the admin client api of Keycloak, especially around joins.
There is this post that adresses a similar need for getting users per role.
Keycloak - Get all Users mapped to roles
How would we do this with the admin…

Orkun
- 6,998
- 8
- 56
- 103
0
votes
1 answer
how to fetch JWT tokens from keycloak API in a springboot application
I am new to Keycloak. I started using it as a part of my spring-boot application.
I have extended KeycloakWebSecurityConfigurerAdapter and overridden methods like configure, configureGloabl etc., to have a specific authentication (see below code…

Zaks M
- 87
- 9
0
votes
1 answer
get RealmResource using KeycloakDeployment
We have a Spring service running on Tomcat using the Tomcat Keycloak adapter and authentication is working fine.
The problem we are having is that we want to query a RealmResource using client parameters defined in the keycloak.json file.
In order…

Ens
- 308
- 3
- 15
0
votes
2 answers
Unable to access AuthenticationManager in Keycloak Authentication SPI
I'm writing a custom authentication SPI for Keycloak.
To authenticate cookie, I want to use AuthenticationManager of keycloak-services. I've added keycloak-services as maven dependency in the project. It doesn't give any compilation error but after…

Utsav Shah
- 177
- 5
0
votes
1 answer
How to generate a token string in a custom keycloak extension?
I’m pretty new to Keycloak development and at the moment I’m trying to develop some demo extensions to learn how SPI’s an stuff like that work in Keycloak.
My Question is: Is there a util- or helper-class which I can use to generate an secure token…

flxPeters
- 1,476
- 12
- 21