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
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.common.OAuth2AccessToken
enhance
(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken, org.springframework.security.oauth2.provider.OAuth2Authentication authentication) protected AccountAncestorService
Methods inherited from class com.broadleafcommerce.auth.user.session.token.enhancer.AbstractUserTokenEnhancer
getRequestAccountId, getUser, getUserContext, getUserService, isAnonymousCsrImpersonation, setUserContext, setUserService, shouldEnhance
-
Field Details
-
ACCOUNT_ID_CLAIM
- See Also:
-
PARENT_ACCOUNTS_CLAIM
- See Also:
-
PERSONAL
- See Also:
-
-
Constructor Details
-
AccountIdTokenEnhancer
-
-
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
-