Skip to content

Interaction of LUNA ID with LUNA PLATFORM 5#

Interaction between LUNA ID and LUNA PLATFORM 5 extends LUNA ID functionality and allows you to perform the following tasks:

  • Perform OneShotLiveness estimation to determine whether a person’s face is real or fake, for example, a photo or printed image.
  • Send the best shot for descriptor matching to compare a set of properties and helper parameters, which describe a person’s face, with the source image to determine the similarity of represented objects. The result is a similarity score, where 1 means completely identical, and 0 means completely different.

LUNA ID interacts with LUNA PLATFORM 5 via REST API.

Important: If you are not going to use the LUNA PLATFORM 5 API, we recommend that you disable OneShotLiveness estimation to avoid possible errors.

LUNA PLATFORM 5 functions as the backend and lets you create and use handlers. Handlers are sets of rules or policies that describe how to process the received images. For details on how to create and use handlers, see the LUNA PLATFORM 5 documentation.

The below diagram shows how LUNA ID interacts with LUNA PLATFORM 5. We recommend that you use it to integrate LUNA ID into your app.

Interaction of LUNA ID with LUNA PLATFORM 5 through a middleware

As the diagram shows, the process of interaction between LUNA ID and LUNA PLATFORM 5 is a back-and-forth communication between the frontend and backend.

Your mobile app runs on the frontend and embeds LUNA ID to use its key features. LUNA ID sends requests to LUNA PLATFORM 5 that functions as the backend.

But, when your production system is deployed, an interaction between LUNA ID and LUNA PLATFORM 5 is not realized directly. The interaction occurs via a secure channel through a middleware service that provides encryption and protection of the data being transferred.

Important. This document describes an example of direct interaction between LUNA ID and LUNA PLATFORM 5. VisionLabs does not provide security solutions for data transfer. You need to provide data protection by yourself.

We recommend that you use security best practices to protect data transfer. You should pay attention to the following security aspects:

  • If you want to use the HTTPS protocol, then you need to add NGINX or other similar software to the backend.
  • If you want to use the TLS cryptographic protocol, then you need to implement it at your mobile app.
  • You might need to configure a firewall correctly.
  • To restrict access, you can use LUNA PLATFORM 5 tokens, which can be transferred to a request header from LUNA ID.