public class ExternalLoginAuthoritiesMapper extends Object implements OIDCAuthoritiesMapper
Constructor and Description |
---|
ExternalLoginAuthoritiesMapper() |
Modifier and Type | Method and Description |
---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
mapAuthorities(com.nimbusds.jwt.JWT idToken,
UserInfo userInfo) |
public ExternalLoginAuthoritiesMapper()
public Collection<? extends org.springframework.security.core.GrantedAuthority> mapAuthorities(com.nimbusds.jwt.JWT idToken, UserInfo userInfo)
mapAuthorities
in interface OIDCAuthoritiesMapper
idToken
- the ID Token (parsed as a JWT, cannot be @null)userInfo
- userInfo of the current user (could be @null)Copyright © 2018. All rights reserved.