Usage
Generate url and redirect user
Generate a signed url
The first step is to generate a signed URL. This signed URL will be the destination where the user should be redirected to, to complete the verification.
Sample implementation here.
Understanding the parameters
applicationSecretfrom Get your API KeysbundleId- one ofeducation,employment,age,default. See installation for information to pick a bundleId.callbackUrl- aPOSTendpoint where the verified data will be sent. See next section for details.sessionId- a session identifier that you can use to identify the user on your system. We will send this session id back to you so you can map the verification to the said user.providerId- if you know a provider in specific that you want to use, you can set that here. You can see all the available providers on the Developer Tool. If you selecteddefaultfor bundleId, you must set a providerId, else it is optional and user will be asked to select the provider using a managed UI.
Receiving the proof
You must expose a POST endpoint. That accepts a json object.
Verify
To make sure this is data that actually came from us, you can use a helper function. Just pass the body as is to the signature verification endpoint.
Sample implementation here.
Once it is verified, you can confidently use the data you received. Please see bundle specific guides for processing data from that bundle.
Troubleshooting
- Make sure CORS is enabled on this endpoint