Closed
Description
It would be nice to configure JwtGrantedAuthoritiesConverter
with what scope prefix to use for the resulting GrantedAuthority
s:
JwtGrantedAuthoritiesConverter converter = new JwtGrantedAuthoritiesConverter();
converter.setAuthorityPrefix("ROLE_");
This would involve adding a new method to JwtGrantedAuthoritiesConverter
, namely setAuthorityPrefix
. The code would then use this prefix instead of the hardcoded "SCOPE_" prefix.
The default value should still be "SCOPE_".