Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
DefaultOAuth2UserService should extract authorities #7339
Jwt jwt = Jwt.withTokenValue("token") .claim("scope", "message:read message:write") .header("alg", "none") .build(); JwtGrantedAuthoritiesConverter converter = new JwtGrantedAuthoritiesConverter(); assertThat(converter.convert(jwt)).containsExactly( new SimpleGrantedAuthority("SCOPE_message:read"), new SimpleGrantedAuthority("SCOPE_message:write"));
It'd be nice if
Note that we should also keep #5349 in mind when completing this feature.