Enabling product syncing with JWT
Learn how to enable product syncing using JWT to grant products based on JWT token contents.
- Tick the box Enable Product Syncing and click OK.
- Set the Private Claim Name to be the key from the JWT payload that your Identity Management provider will use to describe a user's product grants.
- Click Save.Enabling Product syncing will allow products to be granted based on the contents of the JWT token. Once the integration is set up, you will need to create Zephr Products with set JWT values.
- Navigate to Products > Catalogue.
- Click Add A Product.
- Give your product a title and, if relevant, a description.
- Scroll to the Developer Interface, and click the padlock symbol to unlock the section.
- Tick Auto-assign from JWT and add a Claim Value.This should be the value your IDM will put into the JWT payload if a user should have the product (note that arrays and string values are supported in the payload).
- Click Update & Lock then save your product.When the JWT syncing for a product is set up, any bearer with a JWT payload that asserts they hold a product will inherit the mapped entitlement bundle (and all descendants).An example payload including a product subscription, and first-party data:
Following this setup, you'll be able to use the Zephr Rules builder to create rule-based upon both the product grant and the first-party data (such as city above) that is being set in the JWT token.{ "prodsub": ["subscription-a"], "city": "NY" }