public class UserTokenEnhancer extends AbstractUserTokenEnhancer
OAuth2AccessToken.getAdditionalInformation()
.
Constructor and Description |
---|
UserTokenEnhancer() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.common.OAuth2AccessToken |
enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
protected Map<String,Object> |
getUserTokenClaims(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) |
protected void |
putServiceIdClaim(Map<String,Object> userData,
User user) |
getUser, getUserService, isAnonymousCsrImpersonation, setUserContext, setUserService, shouldEnhance
public org.springframework.security.oauth2.common.OAuth2AccessToken enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
protected Map<String,Object> getUserTokenClaims(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
Copyright © 2021. All rights reserved.