Class OriginalAwareJwtAccessTokenConverter
- java.lang.Object
-
- org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter
-
- com.broadleafcommerce.auth.token.service.OriginalAwareJwtAccessTokenConverter
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.security.oauth2.provider.token.AccessTokenConverter,org.springframework.security.oauth2.provider.token.TokenEnhancer
public class OriginalAwareJwtAccessTokenConverter extends org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverterToken enhancer to add the valueoidto the token, if it exists.oidrepresents theRefreshToken.getAncestor()value.
-
-
Constructor Summary
Constructors Constructor Description OriginalAwareJwtAccessTokenConverter()
-
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)Based on the implementation fromJwtAccessTokenConverter.enhance(OAuth2AccessToken, OAuth2Authentication).-
Methods inherited from class org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter
afterPropertiesSet, convertAccessToken, decode, encode, extractAccessToken, extractAuthentication, getAccessTokenConverter, getJwtClaimsSetVerifier, getKey, isPublic, isRefreshToken, setAccessTokenConverter, setJwtClaimsSetVerifier, setKeyPair, setSigner, setSigningKey, setVerifier, setVerifierKey
-
-
-
-
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)Based on the implementation fromJwtAccessTokenConverter.enhance(OAuth2AccessToken, OAuth2Authentication). Add support for the oid parameter.- Specified by:
enhancein interfaceorg.springframework.security.oauth2.provider.token.TokenEnhancer- Overrides:
enhancein classorg.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter- Parameters:
accessToken- the current access token with its expiration and refresh tokenauthentication- the current authentication including client and user details- Returns:
- a new token enhanced with additional information
-
-