Fix typo in documentation

Fixed typo in documentation.
This commit is contained in:
Rob Winch 2019-07-16 12:01:07 -05:00 committed by GitHub
commit dc2705189f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ We can override this quite simply to alter the way granted authorities are deriv
```java ```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");