Skip to content

Commit

Permalink
add principal claim name to reactive config
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Nov 29, 2023
1 parent 88be1b1 commit fad63ff
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ public class SecurityConfiguration {
Converter<Jwt, Mono<AbstractAuthenticationToken>> jwtAuthenticationConverter() {
JwtAuthenticationConverter jwtAuthenticationConverter = new JwtAuthenticationConverter();
jwtAuthenticationConverter.setJwtGrantedAuthoritiesConverter(new JwtGrantedAuthorityConverter());
jwtAuthenticationConverter.setPrincipalClaimName("preferredUsername");
return new ReactiveJwtAuthenticationConverterAdapter(jwtAuthenticationConverter);
}
Expand Down

0 comments on commit fad63ff

Please sign in to comment.