public class Auth0JwtAuthorityMapper extends Object implements JwtAuthorityMapper<com.auth0.jwt.interfaces.DecodedJWT>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
extractAuth0Permissions |
protected boolean |
extractKeycloakResourceAccess |
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
Auth0JwtAuthorityMapper(boolean auth0Permissions,
boolean keycloakResourceAccess) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addScope(com.auth0.jwt.interfaces.DecodedJWT token,
List<org.springframework.security.core.GrantedAuthority> authorities) |
protected String |
asPermission(String permission) |
protected String |
asRole(String role) |
protected String |
asScope(String scope) |
List<org.springframework.security.core.GrantedAuthority> |
getGrantedAuthorities(com.auth0.jwt.interfaces.DecodedJWT token) |
protected static final org.slf4j.Logger logger
protected final boolean extractAuth0Permissions
protected final boolean extractKeycloakResourceAccess
public Auth0JwtAuthorityMapper(boolean auth0Permissions,
boolean keycloakResourceAccess)
public List<org.springframework.security.core.GrantedAuthority> getGrantedAuthorities(com.auth0.jwt.interfaces.DecodedJWT token)
getGrantedAuthorities in interface JwtAuthorityMapper<com.auth0.jwt.interfaces.DecodedJWT>protected void addScope(com.auth0.jwt.interfaces.DecodedJWT token,
List<org.springframework.security.core.GrantedAuthority> authorities)
Copyright © 2020 Entur AS. All rights reserved.