Update resource-server.adoc

Fix typo in the code sample
This commit is contained in:
RusZh 2019-02-11 15:02:22 +06:00 committed by Josh Cummings
parent a7a9271313
commit 0c2a7e03f7
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ We can override this quite simply to alter the way granted authorities are deriv
[source,java] [source,java]
---- ----
static class GrantedAuthoritiesExtractor extends JwtAuthenticationConverter { static class GrantedAuthoritiesExtractor extends JwtAuthenticationConverter {
protected Collection<GrantedAuthorities> extractAuthorities(Jwt jwt) { protected Collection<GrantedAuthority> extractAuthorities(Jwt jwt) {
Collection<String> authorities = (Collection<String>) Collection<String> authorities = (Collection<String>)
jwt.getClaims().get("mycustomclaim"); jwt.getClaims().get("mycustomclaim");