Claims can be shared with your applications and services in following ways:
Claims are added to the identity token and/or access token issued to an application when the account passes a control which releases their attribute, through its Identity Attributes (config.attributes.identity) or Access Attributes (config.attributes.access). Typically this is a claim control, for which the user gives consent to share the data with the application.
Following rules apply:
email{value}_verified claim is added, which is true for enabled and false for pending claimssub, aud or exp) are ignoredThe Loyalty Tier control: the claim goes into both the identity and the access token
The user consents to share the claim
For example, an identity token for an account with a validated email address, a given name and a custom loyalty tier attribute contains:
{ "email": "jane@example.com", "email_verified": true, "given_name": "Jane", "loyalty_tier": "gold"}sub claim, see OpenID Connect. Use the identity token to receive claims.An extension receives the claims of the account an event concerns for each of the attributes in its Attributes (config.attributes), in event.claims and in the same format as in tokens. This allows you to pass claims on to your own systems, for example syncing new signups to your CRM, or to compute custom token claims from them.
Your back-end can read claims with a machine client that has an admin scope, through the getClaim, listClaims and searchClaims operations of the Management API, or the matching tools of the Agent API. See View and Search.