Implementation Guide
Review the steps for implementing Prove Identity Manager
Prerequisites
- Sandbox credentials: Ensure you have Prove Sandbox credentials from the Developer Portal. To access Sandbox credentials, follow the steps outlined on the Authentication page. To access the Prove API, you’ll need to use your OAuth client ID and client secret. You can load these from environment variables or another method:
The OAuth token expires after 60 minutes, requiring you to get another token.
- Server-side SDK: Install the server-side SDK of your choice by running a command in your terminal, or by using a dependency management tool specific to your project.
Implement Prove Identity Manager
Enroll Identity for Monitoring
Use the Enroll Identity endpoint to enroll a single customer for monitoring:
The function returns:
identityId
: a unique Prove-generated identifier for the enrolled identity.success
: if true, the request was successful and the identity was created.
Batch Enroll Identities (Optional)
For bulk operations, use the Batch Enroll Identities endpoint to enroll up to 100 customers at once:
Webhook Notifications
Webhooks are the method by which Prove sends risk change events. Webhook integration is necessary in order to receive change notifications for enrolled consumers.
Here’s how to get these webhook notifications up and running:
Access the Portal
Login to the Portal.
Find Your Project
Navigate to your Identity Manager project.
Configure Webhook
Using the Configure tab, select the Configure button next to the Sandbox webhook. You will be presented with a screen that looks like this:
Enter the URL of your webhook endpoint and select Save and Test Webhook. This will save your configuration and send a test webhook to the URL you provided.
If you would like a sample URL to test, you can use Webhook.site to generate a unique URL for testing.
Authenticate Webhook
The webhook URL must be authenticated using Prove’s JWT secret. The JWT is a synchronous JWT using HS256 (synchronous algorithm).
This secret is used to sign the JWT token that Prove sends with the webhook notifications. Open the webhook configuration and add the appropriate code snippet to your server-side implementation, replacing whsec_your_secret
with the secret provided by the Portal.
The secret value is autogenerated when the appropriate URL is entered and you select Save and Test Webhook or Configure Webhook.
Parse the Webhook Payload
The following snippet shows an example of each type of change event you could receive from Prove. Each notification will come as an array of event objects.
Access Production
Once you have successfully tested the webhook and finished your implementation, configure and test your production webhook URL. This will allow you to receive notifications for live events.
-
Prove will not send retroactive notifications that occur before the webhook is configured.
-
Deactivated identities will not generate webhook notifications until reactivated.
-
A phone number change, disconnect, or moved out of coverage event will result in no further notifications for that identity.
In the event your customer provides an updated phone number, we’d recommend completing verification for this number and then enrolling the updated phone number.
Test Your Prove Implementation
Next, reference the Sandbox test scenarios to test users and simulate different behaviors encountered in production.
To launch in Production, please contact your Prove representative.