Organization-aware APIs
Include organization context in an access token for API authorization.
Kinde · Const
Kinde token customization lets you add preset claims and properties to application tokens. Configure it per application for access, ID, or M2M tokens in the Kinde dashboard.
Token customization lets an application choose preset claims and public properties to include in access, ID, or M2M tokens. Configure it from the application's Tokens area, select Customize for the relevant token type, choose the available claims or properties, and save.
sub to be replaceable through token customization.// No runnable code is provided because this feature is configured in Kinde's dashboard.Token customization is configured per application in Kinde rather than declared in application code.
Include organization context in an access token for API authorization.
Add selected user identity data to an ID token used by a client application.
Expose feature flags to a machine-to-machine integration.
Open the application, go to Tokens, find Token customization, and choose Customize on the required token type. Select the available additional claims or properties, then save the configuration.
Follow-up: How would you include a custom claim that is not one of the available built-in choices? Use a workflow that modifies the appropriate access or ID token rather than relying on this dashboard feature.
Backend applications can customize access, ID, and M2M tokens. Frontend applications support access and ID tokens, while M2M applications support only M2M tokens.
Follow-up: What should you check before adding a property? Confirm that the property is public in its property settings.
The feature provides preset additional claims and properties, such as organization name, roles, email, and external organization ID for access tokens. It can also add social identity or organizations to ID tokens and feature flags to M2M tokens.
Follow-up: Can standard JWT claims be changed? No; claims such as sub cannot be overridden through token customization.
Additional claimsProperties in tokensAccess tokensID tokensM2M tokensToken customization