Class AccountIdTokenEnhancer

java.lang.Object
com.broadleafcommerce.auth.user.session.token.enhancer.AbstractUserTokenEnhancer
com.broadleafcommerce.auth.user.session.token.enhancer.AccountIdTokenEnhancer
All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.TokenEnhancer

public class AccountIdTokenEnhancer extends AbstractUserTokenEnhancer
Responsible for validating and adding the "acct_id" claim to the token. A user is defined as a member of an account if they have at least one role for that account.
  • Field Details

  • Constructor Details

  • Method Details

    • enhance

      public org.springframework.security.oauth2.common.OAuth2AccessToken enhance(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
    • getAccountAncestorService

      protected AccountAncestorService getAccountAncestorService()