Interface JwtAccessTokenEnhancer

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
AbstractUserAccessTokenEnhancer, AccountIdAccessTokenEnhancer, AuthoritiesAccessTokenEnhancer, ClientPermissionsAccessTokenEnhancer, ClientRestrictionAccessTokenEnhancer, CustomerContextAccessTokenEnhancer, CustomerSegmentsAccessTokenEnhancer, ImpersonationAccessTokenEnhancer, RandomTokenEnhancer, RegisteredClaimsAccessTokenEnhancer, TenantPropertiesAccessTokenEnhancer, UserAccessTokenEnhancer, UserRestrictionAccessTokenEnhancer

public interface JwtAccessTokenEnhancer extends org.springframework.core.Ordered
Indicates classes that can participate in JWT Token customization for access tokens.

To be clear, this is not intended for customizing OAuth2TokenFormat.REFERENCE-format access tokens such as those generated by OAuth2AccessTokenGenerator.

Author:
Cade Rea (cade-rea)
See Also:
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Evaluate the authentication and add claims as necessary.
    default int
     
  • Method Details

    • enhance

      void enhance(JwtTokenEnhancerContext context)
      Evaluate the authentication and add claims as necessary. A JwtTokenEnhancerContext contains User and client authentication tokens, authorization tokens, and access token claims.
      Parameters:
      context - The JwtTokenEnhancerContext to evaluate.
    • getOrder

      default int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered