Class AccessTokenClaims
java.lang.Object
com.broadleafcommerce.resource.security.utils.service.AccessTokenClaims
These claims are also used in access tokens.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringID of the account the user is currently active in (this is typically for B2B).static final StringThe claim for whether this authentication belongs to an admin user.static final StringThe claim if the current token is for an admin-scoped service client.static final StringThe ID of the admin user.static final StringThe claim storing the authorities of the user.static final StringThe claim indicating that the CSR is impersonating an anonymous user.static final StringThe value of theSessionTokenClaimKeys#SUBJECTwhen anonymously impersonated as a CSR.static final StringThe claim storing the CSR's client ID.static final StringThe claim storing the authorities inherited from the CSR.static final StringThe claim storing the CSR's subject.static final StringThe claim storing the CSR's user ID.static final StringAlias forCSR_SUBJECT.static final StringID of the customer user if applicable.static final StringClaim containing the ids of the customer segments the active user is in.static final StringThe user's full name.static final StringThe claim indicating whether the CSR is impersonated themselves rather than a customer user.static final StringClaim containing the ids of the parent accounts if the user is active in an account context.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringThe user type claim to distinguish the type of services the user interacts with.static final StringThe user's username. -
Method Summary
-
Field Details
-
CUSTOMER_ID
ID of the customer user if applicable.- See Also:
-
ACCOUNT_ID
ID of the account the user is currently active in (this is typically for B2B).- See Also:
-
PARENT_ACCOUNTS
Claim containing the ids of the parent accounts if the user is active in an account context.- See Also:
-
CUSTOMER_SEGMENT_IDS
Claim containing the ids of the customer segments the active user is in.- See Also:
-
USER_NAME
Deprecated, for removal: This API element is subject to removal in a future version.The user's username. This is the claim name used by AuthenticationServices 1.x, and is only relevant for backwards compatibility. Opt to useUSERNAMEinstead.- See Also:
-
USERNAME
The user's username. This is the claim name used by AuthenticationServices starting with version 2.- See Also:
-
FULL_NAME
The user's full name.- See Also:
-
CSR_CLIENT_ID
The claim storing the CSR's client ID. Only populated if impersonated.- See Also:
-
CSR_SUBJECT
The claim storing the CSR's subject. Only populated if impersonated.- See Also:
-
CSR_USER_ID
The claim storing the CSR's user ID. Only populated if impersonated.- See Also:
-
CSR_ANONYMOUS
The claim indicating that the CSR is impersonating an anonymous user. Only populated if impersonated as an anonymous user.- See Also:
-
CSR_ANONYMOUS_SUB_VALUE
The value of theSessionTokenClaimKeys#SUBJECTwhen anonymously impersonated as a CSR.- See Also:
-
CSR_INHERITED_AUTHORITIES
The claim storing the authorities inherited from the CSR. Only populated if impersonated.- See Also:
-
IMPERSONATING_SELF
The claim indicating whether the CSR is impersonated themselves rather than a customer user. Usually done in order to perform functions such as managing quotes rather than shopping on behalf of.- See Also:
-
CSR_USERNAME
Alias forCSR_SUBJECT.- See Also:
-
ADMIN
The claim for whether this authentication belongs to an admin user.- See Also:
-
USER_TYPE_ATTR
The user type claim to distinguish the type of services the user interacts with.- See Also:
-
AUTH_DETAILS_ADMIN_USER_ID_KEY
The ID of the admin user. This is only applicable if the current user is bound to an admin context.- See Also:
-
AUTHORITIES
The claim storing the authorities of the user.- See Also:
-
ADMIN_SCOPED_SERVICE_CLIENT
The claim if the current token is for an admin-scoped service client. Only used for service-to-service calls scoped from the admin context.- See Also:
-