全部產品
Search
文件中心

ID Verification:接入流程

更新時間:Sep 20, 2024

用戶端 SDK 和服務端 API 接入,適用於已有用戶端 App,且希望在 App 內對使用者進行線上認證的情境。

前提條件

您必須瞭解通過 HTTP、HTTPS 原生調用ID Verification服務介面時,構造請求籤名的方法。

更多簽名機制的資訊,請參見API簽名機制

操作步驟

  1. 開通ID Verification服務。具體操作,請參見開通ID Verification- KYC服務

  2. 接入方案。

    在您完成上述步驟後,您可以進行無線SDK+服務端接入。接入步驟如下。

    1. 調用服務端初始化介面。

    2. 調用接入用戶端SDK。

    3. 調用服務端查詢介面。

    您可以查看下方調用時序圖瞭解詳細接入步驟。時序圖

    序號

    說明

    1

    A user initiates a business process (for example, an identity proofing process) through the merchant application.

    2

    The merchant app calls the getMetaInfo interface to obtain the meta information about the Alibaba Cloud SDK and the user's device for preparation.

    3

    The Alibaba Cloud SDK returns the meta information to the merchant application.

    4

    The merchant application initializes a transaction and passes the meta information to the merchant server.

    5

    With the meta information as an input, the merchant server calls Initialize API to obtain the client configuration information, which includes parameters about SDK connection and behavior.

    6

    The Alibaba Cloud server performs usability check based on the meta information. If the check is passed, the Alibaba Cloud server returns the client configuration information to the merchant server.

    7

    The merchant server returns the client configuration information to the merchant application.

    8

    The merchant application starts the Alibaba Cloud SDK with the client configuration information that is obtained in Step 7.

    9

    The Alibaba Cloud SDK interacts with the user, captures required data (for example, face images) and uploads it to the Alibaba Cloud server for verification. There might be multiple rounds of interaction between the Alibaba Cloud SDK and Alibaba Cloud server.

    10

    The Alibaba Cloud server performs related checks on the uploaded user data, and returns the transaction status to the Alibaba Cloud SDK. If all the corresponding checks are passed, a result code that indicates success is returned to the Alibaba Cloud SDK; otherwise, the process might be interrupted and further interactions are needed between the user and the Alibaba Cloud SDK.

    11

    The Alibaba Cloud SDK notifies the merchant application that the transaction is completed.

    12

    The merchant application syncs with the merchant server that the transaction is completed and starts a double check on the transaction details.

    13

    The merchant server calls CheckResult API to check the transaction details with the Alibaba Cloud server again.

    14

    The Alibaba Cloud server returns the transaction details to the merchant server.

    說明

    To ensure the information security, the sensitive information such as captured face image is only returned to the merchant server.

    15

    The merchant server filters the transaction details that is returned from the Alibaba Cloud server, and returns the information that is not sensitive to the merchant application.

    16

    The merchant application informs the user that the process is completed.

  3. 瞭解接入步驟後,您可以通過以下方式接入。

    • 進行服務端接入,請參見Initialize

    • 在應用用戶端整合SDK。具體整合步驟,請根據平台系統,參見以下文檔。