How to Install the Liveness Detection Integration from Azion Marketplace

Liveness Detection is a serverless integration available at Azion Marketplace, powered by Saffe. It provides a biometric authentication system with facial recognition designed to prevent spoofing attempts using photographs or videos.

When installed, the integration deploys a new Application on the Azion Web Platform along with an Azion domain, giving you a ready-to-use liveness detection endpoint. The Function runs on Azion’s distributed architecture, processing image data at the network edge to deliver low-latency, real-time identity verification without routing requests to a centralized origin.


Getting the integration

To install Liveness Detection from Azion Marketplace:

  1. Access Azion Console > Marketplace.
  2. On the Marketplace homepage, type Liveness Detection in the search bar or browse the integration cards.
  3. Select the Liveness Detection card.
  4. Once the integration’s page opens, click the Install button at the bottom-right corner of the page.

A success message confirms the integration was installed. The installation process automatically creates a new Application and an Azion domain for you.


Reviewing the deployed function

After installation, a Function named Face Detection is added to your account. To review its configuration:

  1. On the Products menu, go to Build > Functions.
  2. From the list of functions, select Face Detection.
  3. On the function’s page, review the available tabs:
    • Code: a read-only editor showing the function’s source code.
    • Arguments: a JSON editor where you can configure and store the parameters used by the function at runtime.

Reviewing the deployed application

The installation also creates a new Application pre-configured with the Liveness Detection function. To review it:

  1. On the Products menu, go to Build > Applications.
  2. Select the application created by the Liveness Detection integration.
  3. Navigate to the Functions tab to view the instantiated function and its configuration.

Accessing the Liveness Detection endpoint

The integration generates a new Azion domain automatically. To access it:

  1. On the Products menu, select Domains.
  2. Locate the domain associated with the Liveness Detection application.
  3. Copy the domain address.
  4. Open the domain in a new browser tab.

You now have a fully functional biometric authentication system with facial recognition running on Azion’s distributed architecture.


How it works

For each incoming request, the Liveness Detection function:

  1. Captures image frames submitted by the client.
  2. Sends the data to Saffe’s API for real-time liveness analysis.
  3. Returns a response indicating whether the subject is a live person or a spoofing attempt (photograph, video, or mask).

The function runs directly on Azion’s distributed infrastructure, reducing round-trip latency and keeping sensitive biometric data processing as close to the user as possible.


Configuring the Arguments

You can customize the function behavior by editing the Arguments tab in the Face Detection function. The arguments are stored as a JSON structure and passed to the function at runtime.

To update the arguments:

  1. On the Products menu, go to Build > Functions.
  2. Select the Face Detection function.
  3. Click the Arguments tab.
  4. Edit the JSON structure with your Saffe credentials and configuration parameters.
  5. Click the Save button.

Refer to Saffe’s documentation for the full list of supported parameters and authentication credentials required to connect to the Saffe API.


Monitoring

Use Azion observability tools to monitor the Liveness Detection integration:

  • Real-Time Events: Access the Functions tab to inspect individual request logs and function responses.
  • Data Stream: Create a stream using the Functions Event Collector template to forward logs to your preferred endpoint for long-term analysis.