Third-party mini program integration
The Real Person Authentication SDK allows you to connect an access scenario to a third-party mini program. This document explains how.
Prerequisites
-
Third-party mini programs are essentially H5 pages. Therefore, you can integrate the Web SDK into any solution that supports H5 page integration.
-
On the server-side, when you call the InitFaceVerify API to initiate a verification request, you must set the CertifyUrlStyle parameter to L (original long URL).
-
This access method requires you to upload a verification file from the third-party mini program platform. Be sure to obtain this file in advance.
Procedure
-
Obtain the verification file for your mini program from the third-party platform.
-
Log on to the Real Person Authentication console.
-
In the console, go to . In the pop-up window, turn on the Mini Program Configurations switch.
-
Configure settings such as Scenario Name and Retain Verification Data as needed.
-
Enter the Mini Program Name.
-
Select the Mini Program Platform.
-
Upload the verification file.
-
-
After creating the scenario, obtain the Verification Scenario ID and the CertifyUrl root domain name.
The scenario is displayed on a card that also shows its creation and update times. Click the copy icon next to the CertifyUrl root domain name field to copy its value.
NoteThe CertifyUrl root domain name is the root domain used for mini program integration. Add this domain to the allowlist on the third-party platform to prevent it from being blocked.
-
Complete the integration process on the third-party mini program platform.