[keycloak-user] SpringBoot 2.0 OAuth2 client with Keycloak: missing roles
Cedric Thiebault
cedric.thiebault at sensefly.com
Thu Mar 15 11:15:16 EDT 2018
Hi,
I'm trying to use Spring Boot 2 OAuth2 client with Keycloak (3.4.3).
It works well except users always get ROLE_USER authority even if they have other roles within the keycloak client.
I've uploaded my sample project if you want to have a quick look:
https://github.com/cthiebault/keycloak-spring-boot-2.0
It's quite straightforward...
I had a look to https://docs.spring.io/spring-security/site/docs/5.0.3.RELEASE/reference/htmlsingle/#oauth2login-advanced-map-authorities to add keycloak roles to user's granted authorities but I don't know which Keycloak endpoint to use...
Any help would be very appreciated :-)
Cedric
More information about the keycloak-user
mailing list