
Triggers
M2M / Client Credentials
Thecredentials-exchange
trigger is a function executed before the access token is returned.
References
- Event object: Provides contextual information about the request for a client credentials exchange.
- API object: Provides methods for changing the behavior of the flow.
Common use cases
Access control
A credentials-exchange Action can be used to deny an access token based on custom logic.Add custom claims to the access token
A credentials-exchange Action can be used to add custom claims to an access token.We strong recommend using namespaced custom claim in the form of a URI. To learn more about namespaced and non-namespaced custom claims, read Create Custom Claims.