Skip to content

Commit

Permalink
Add comment highlighting significance of the realm roles in Keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
flawmop committed Aug 23, 2024
1 parent 7b8fbeb commit a3a9fd2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
return http.build();
}

// For Keycloak, the below works with a 'realm roles' 'config.claim.name' of just 'roles' (not 'realm_access.roles'!)
@Bean
JwtAuthenticationConverter jwtAuthenticationConverter() {
var jwtGrantedAuthoritiesConverter = new JwtGrantedAuthoritiesConverter();
Expand Down

0 comments on commit a3a9fd2

Please sign in to comment.