Class ImpersonationTokenEnhancer
- java.lang.Object
-
- com.broadleafcommerce.auth.user.session.token.enhancer.ImpersonationTokenEnhancer
-
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.TokenEnhancer
public class ImpersonationTokenEnhancer extends Object implements org.springframework.security.oauth2.provider.token.TokenEnhancer
An implementation ofTokenEnhancer
that copies claims from the current CSR'sAuthentication.getDetails()
to the access token claims.- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description ImpersonationTokenEnhancer()
-
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)
-
-
-
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)
- Specified by:
enhance
in interfaceorg.springframework.security.oauth2.provider.token.TokenEnhancer
-
-