Class 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 of TokenEnhancer that copies claims from the current CSR's Authentication.getDetails() to the access token claims.
    Author:
    Nick Crum (ncrum)
    • Constructor Detail

      • ImpersonationTokenEnhancer

        public ImpersonationTokenEnhancer()
    • 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 interface org.springframework.security.oauth2.provider.token.TokenEnhancer