spring-security-examples icon indicating copy to clipboard operation
spring-security-examples copied to clipboard

Bug in SecurityConfig GrantedAuthoritiesMapper only looks at the first item in authorities

Open mrdapotts opened this issue 4 years ago • 0 comments

I fund your code while looking at issues raised on stack overflow I have also been trying to get keycloak to work with webflux. In my case I have 5 items in my authorities list, your code only considers the first item. You need to use something like

for(Object authority:authorities) {

To scan the entire list of authorities.

mrdapotts avatar May 24 '21 19:05 mrdapotts