Configure Interaction Hook
Configure the Interaction Hook for the OpenID4VCI protocol on your tenant. Many credential issuance journeys require the issuer to perform custom interactions with the user. This could be gathering more information, performing additional authentication steps (E.g, 2FA, MFA or biometric checks) or communicating the terms of service. To facilitate this requirement, you can configure MATTR VII to invoke an interaction hook which will redirect the user to a custom component during the credential issuance journey. This redirect happens after the user is authenticated with your configured identity provider but before the credential is issued to the user. Upon successful completion of the interaction hook, your custom component will redirect the user back to their digital wallet to complete the credential issuance flow. Your interaction hook component can be either a web or native application. We recommend using a web interface because it's more compatible with most scenarios.
You can only configure one interaction hook on your MATTR VII tenant. If you require several custom interactions as part of the credential issuance workflow, they should all be linked into a single interaction hook component.
Analytic events
- CREDENTIAL_PROVIDER_OPENID_CONFIGURATION_UPDATE_START
- CREDENTIAL_PROVIDER_OPENID_CONFIGURATION_UPDATE_SUCCESS
- CREDENTIAL_PROVIDER_OPENID_CONFIGURATION_UPDATE_FAIL
Request Body schema: application/jsonrequired
The Interaction Hook configuration payload
object (OpenIdConfigurationInteractionHookRequest) Interaction Hook configuration. |
Interaction Hook configured
Bad Request
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "interactionHook": {
- "claims": [
- "first_name",
- "last_name",
- "email"
], - "sessionTimeoutInSec": 1200,
- "disabled": false
}
}
- 200
- 400
{- "interactionHook": {
- "claims": [
- "first_name",
- "last_name",
- "email"
], - "sessionTimeoutInSec": 1200,
- "disabled": false,
- "secret": "dGtUrijBOT6UUJ8JO4kAFyGfhahDlVVeIk/sPbWTa7c="
}
}
Retrieve Interaction Hook
Retrieves the Interaction Hook configuration from your tenant.
Analytic events
- CREDENTIAL_PROVIDER_OPENID_CONFIGURATION_RETRIEVE_START
- CREDENTIAL_PROVIDER_OPENID_CONFIGURATION_RETRIEVE_SUCCESS
- CREDENTIAL_PROVIDER_OPENID_CONFIGURATION_RETRIEVE_FAIL
Interaction Hook configuration retrieved
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
- 200
{- "interactionHook": {
- "claims": [
- "first_name",
- "last_name",
- "email"
], - "sessionTimeoutInSec": 1200,
- "disabled": false,
- "secret": "dGtUrijBOT6UUJ8JO4kAFyGfhahDlVVeIk/sPbWTa7c="
}
}