App authentication solutions

更新时间:
复制 MD 格式

This solution combines AI technologies, such as biometrics, with identity verification APIs from authoritative organizations to verify that users are genuine and their identities are valid.

Note

If you have questions about API integration, API usage, or the visual AI capabilities of the Alibaba Cloud Visual Intelligence API, you can contact us through our DingTalk group (23109592).

Product solution description

The app authentication solution allows the client SDK to collect face photos. It uses client-plus-cloud liveness detection and face verification against an authoritative public security database to verify that the user is genuine and their identity is valid.

Authentication flow

App authentication requires the client (Android or iOS) and the server to work together to perform financial-grade face detection.

To configure the client environment and download the SDK, see the Android Client Integration Tutorial and the iOS Client Integration Tutorial. To quickly test the solution, you can download the Android Demo and the iOS Demo.

The following flowchart shows the overall process:

image

  1. Initialize the SDK. For more information, see the SDK initialization code in the Android Client Integration Tutorial and the iOS Client Integration Tutorial.

  2. Your app calls the platform SDK to obtain the metainfo. For more information, see the "Obtain metainfo data" section in the Android Client Integration Tutorial and the iOS Client Integration Tutorial.

  3. The platform SDK returns the metainfo value.

  4. Your app sends an authentication request to your server.

  5. Your server sends an authentication request to the platform server by calling the Mobile Verification Request API.

  6. The platform server returns a verificationToken to your server.

    Note

    The verificationToken returned by the Mobile Verification Request API is valid for 30 minutes. If you perform face verification after the token expires, an error occurs. You must complete the authentication within this validity period.

  7. Your server returns the verificationToken to your app.

  8. Your app uses the verificationToken to call the authentication SDK. For more information, see the "Start authentication" section in the Android Client Integration Tutorial and the iOS Client Integration Tutorial.

  9. The platform SDK submits the authentication materials to the platform server. This is an internal platform action and requires no action on your part.

  10. The platform server determines the authentication result. This is an internal platform action and requires no action on your part.

  11. The platform server returns the authentication result to the platform SDK. This is an internal platform action and requires no action on your part.

  12. The platform SDK returns the result to your app through a callback function.

  13. Your app sends a request to your server to retrieve the authentication result.

  14. Your server sends a request to the platform server to query the authentication result by calling the Query Mobile Verification Result API.

  15. The platform server returns the final authentication result to your server.

  16. Your server returns the final authentication result to your app for display or further action.

After you integrate the app authentication solution, the authentication interface for your users appears as shown in the following figure.

Before collecting a user's facial information, the service informs the user about the process details. Authentication begins after the user grants authorization. The result is then returned to your application.

image

Note
  • The current version of the SDK does not support UI customization for the user authentication interface.

  • In the Android Demo and iOS Demo, the app sends requests directly to the platform server to demonstrate the complete client-side flow. In a production environment, you must send requests from your app to your server first. Your server then sends the requests to the platform server.

Limits

The financial-grade face detection service currently supports authentication for residents who have second-generation ID cards or permanent residence permits from Hong Kong (China), Macao (China), and Taiwan (China).