Class CustomerSegmentsTokenEnhancer
- java.lang.Object
-
- com.broadleafcommerce.auth.user.session.token.enhancer.AbstractUserTokenEnhancer
-
- com.broadleafcommerce.auth.user.session.token.enhancer.CustomerSegmentsTokenEnhancer
-
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.TokenEnhancer
public class CustomerSegmentsTokenEnhancer extends AbstractUserTokenEnhancer
Enhances a token with the IDs of CustomerSegments that the User is a member of if they are present in the User attributes map.
-
-
Constructor Summary
Constructors Constructor Description CustomerSegmentsTokenEnhancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.common.OAuth2AccessToken
enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
-
Methods inherited from class com.broadleafcommerce.auth.user.session.token.enhancer.AbstractUserTokenEnhancer
getUser, getUserService, isAnonymousCsrImpersonation, setUserContext, setUserService, shouldEnhance
-
-