Using JWT attributes in custom components
Learn how to configure and use JWT attributes in custom components to dynamically display user-specific content.
Once configured, the system will extract the specified data from the JWT and make it available in the scope under blaize.jwt_attributes. This can be used in the block. For example:
{{blaize.jwt_attributes.greeting}}Note:
Accessing JWT attributes in custom components requires the feature.jwtUserAttributes.enabled feature flag to be enabled on the tenant.
When this code is used in a custom component, it retrieves and displays the value stored in the greeting field from the claim name within the JWT specified in the configuration.
- The retrieved value can be a string, such as a nickname, or a JSON structure containing multiple pieces of data.
- This configuration allows dynamic user-specific content to be displayed within your application.