Class UserTokenEnhancer
- java.lang.Object
-
- com.broadleafcommerce.auth.user.session.token.enhancer.AbstractUserTokenEnhancer
-
- com.broadleafcommerce.auth.user.session.token.enhancer.UserTokenEnhancer
-
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.TokenEnhancer
public class UserTokenEnhancer extends AbstractUserTokenEnhancer
Token enhancer that puts various relevant user data into the token'sOAuth2AccessToken.getAdditionalInformation().- Author:
- Samarth Dhruva (samarthd), Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description UserTokenEnhancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.common.OAuth2AccessTokenenhance(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 voidputServiceIdClaim(Map<String,Object> userData, User user)-
Methods inherited from class com.broadleafcommerce.auth.user.session.token.enhancer.AbstractUserTokenEnhancer
getUser, getUserService, isAnonymousCsrImpersonation, setUserContext, setUserService, shouldEnhance
-
-
-
-
Method Detail
-
enhance
public org.springframework.security.oauth2.common.OAuth2AccessToken enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
-
getUserTokenClaims
protected Map<String,Object> getUserTokenClaims(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
-
-