This topic describes how to integrate the Two-Factor Identity Verification App SDK with your mobile app. The SDK enables you to collect user ID information and authenticate users online.
Integration instructions
Alibaba Cloud provides SDKs for various programming languages, such as Java, C#, Go, Python, Node.js/TypeScript, PHP, and C++. Developers can integrate an SDK and use the exposed methods to call the Three-Factor Identity Verification (App SDK Access) API.
The server and client components have separate SDK packages for different platforms. Do not use them interchangeably.
Overview of integration steps
After you activate the service, integrate the server-side and App (SDK) components. The call flow is as follows:
Call the client initialization API to obtain the MetaInfo.
Call the server-side initialization API (InitCardVerify). Pass the MetaInfo and other parameters to obtain the CertifyId.
Call the verify method in the client SDK to start the authentication process. Scan the ID document as prompted on the page.
Call the server-side DescribeCardVerify API to query the authentication result.
The following sequence diagram outlines the integration steps:
NoteNumbered steps in the diagram require an action, such as calling a method. Unnumbered steps are internal processes that the SDK runs automatically.
The Includes section for each step lists key parameters, not all parameters.