Questions tagged [keycloak-spring-boot-starter]
4 questions
1
vote
3 answers
How to enable 2FA using email using keycloak-admin-client in spring boot
My requirement is enable 2FA using email in Keycloak.
When enabled, if user tries to login through email & password ,after user is successfully authenticated ,time based token will be sent to email .
User will do this action from custom UI i.e in…

abishkar bhattarai
- 7,371
- 8
- 49
- 66
0
votes
0 answers
keycloak always 401 Unauthorized when running spring app from docker
when I run my app from localhost everything work okey , but when I run them from docker containers it's always Unauthorized ,
my keycloak config :
enter image description here
my gateway (I used simple api just to test if's it's work okey )
enter…

Ismail Harik
- 1
- 1
0
votes
0 answers
How to set up custom role provider in keycloak 18.0.2?
I want that user roles uploaded from db in keycloak. I have wrote RoleSPI for this, but roles don't load. My role-provider is displayed on server info.
I
I created CustomRoleProvider:
public class CustomRoleProvider implements RoleProvider {
…

Vlados
- 151
- 1
- 4
- 10
-1
votes
1 answer
Keycloak Springboot bearer only for specific endpoint and non bearer for another
I am trying to use keycloak springboot adapter. I want to make some endpoints with "/api" work with bearer only to true.
But I also want the endpoint "/login" to not be a bearer only endpoint and redirect the user to the keycloak OIDC login page if…

Ezekiela Rakotoarijaona
- 100
- 2
- 9