Configuring Onfido

Onfido is a data provider you can use to run these checks:

  • Electronic identity check
  • ID verification (PassFort collects documents)
  • ID verification (service collects documents)

Electronic identity check

How it works

This is the default behaviour for a variant of the Electronic identity check with Onfido as the data provider.

The check is performed by searching for the individual’s details (name, date of birth, address, and, in some cases, national identity number) in the sources supplied by Onfido.

The check passes when a 2+2 result is achieved, which happens when either of these conditions are true:

  1. The individual’s full name and address are matched in one source and the individual’s full name and date of birth are matched in a second source.
  2. The individual’s full name and address are matched in two distinct sources.

If a 2+2 result cannot be achieved, the check looks for a 1+1 result.

The check returns a partial match when a 1+1 result is achieved, which happens when either of these conditions are true:

  1. The individual’s full name, date of birth, and address are matched in one source.
  2. The individual’s full name and address are matched in one source.

If the conditions are not met for a 2+2 result or a 1+1 result, the check fails.

If the individual’s profile doesn’t have data for the required fields, an error is displayed.

If the country of address in the individual’s profile isn’t covered by Onfido, an error is displayed.

Although the individual's national identity number can be used to search the Onfido's sources in some cases, this check variant does not confirm the validity of the national identity number.
For more information about how Onfido handles this check variant, see Onfido’s documentation.

Configuration options

You have the following configuration options:

  • Configure custom matching rules: When this option is selected, you can input your own rules.

To configure a new custom matching rule:

  1. Click the Add custom rule button, then click the down arrow to expand your new custom rule fields.
  2. Give your rule a meaningful name.
  3. Click in the Result field and select a result from the menu.
    • Fail: The individual's details were not matched.
    • 1+1: The individual's details were matched in one source.
    • 2+2: The individual's details were matched in at least two sources.
  4. Enter the Database type to search. You can start typing the name of a database type or click into the field and select from the menu that appears. Select the database types that you need.
  5. Click into the Requires field and select the requirements that you need from each database. For example, you can specify that Forename, Surname, and DOB are required from one database and Forename, Surname, and Address are required from another database.
  6. Note that a match in a mortality database will return a fail result.

  7. If needed, select the Distinct sources checkbox. This checkbox applies when you have two or more lines of requirements. Selecting this checkbox means that each line of requirements must come from a different database.
  8. If you have multiple lines and Distinct sources is not selected, each line of requirements can be satisfied by matches from the same database.

You can add more custom rules, the first rule whose requirements are met will become the active rule. Re-order these at any time by clicking on and holding the grab bar, then, drag the rules into the order you want them.

If you are using mortality checks, PassFort recommends setting up Fail rules first in order of precedence.

  • Pass check on 1+1 result: When this option is selected, the check passes when a 1+1 result is achieved. When this configuration option is used, partial matches are never returned.
  • Date of birth must match in one source to achieve a 1+1 or 2+2 result: When this option is selected, it’s only possible for the check to achieve a 2+2 result or a 1+1 result when the individual’s date of birth is matched in Onfido’s sources. In other words, a 2+2 result is only achieved if the individual’s full name and address are matched in one source and the individual’s full name and date of birth are matched in a second source. A 1+1 result is only achieved when the individual’s full name, date of birth, and address are matched in one source.
  • Use the most recent previous address if the result isn’t 2+2: When this option is selected, the individual’s most recent address is used when the check is run. With this option, if the check fails or a partial match is returned, the check is run again automatically using the next most recent address. The check is only run again automatically once.
With this configuration option, any time the check is run again automatically, you are charged for a second check.
If the addresses provided on the individual’s profile do not include dates, the addresses used for this check are selected at random.
  • Fail the check if a mortality result is found: The individual’s full name and date of birth is searched in Onfido’s mortality lists. If a match is found, the check fails.

What we’ll need

Let us know that you’d like to add a variant of the Electronic identity check with Onfido and which configuration options you’d like to use. We’ll set it up for you.

We’ll also need your Sandbox API token and your Live API token. Learn how to get your tokens.

Testing your configuration

Once the check variant is configured, follow these steps in your demo environment to test whether it's working as expected.

When the check variant is configured to pass on 2+2 results (default):

  1. Does the check pass when a 2+2 result is achieved? To run the test, create any individual profile and run the check variant. If the check passes, it’s working as expected.
  2. Does the check return a partial match when a 1+1 result is achieved? To run the test, create an individual profile with "1+1" as a given name or surname (e.g. "Alex 1+1 Wheeler") and run the check variant. If the check returns a partial match, it’s working as expected.
  3. Does the check fail when the conditions are not met for a 2+2 result or a 1+1 result? To run the test, create an individual profile with "FAIL" as a given name or surname (e.g. "Alex FAIL Wheeler") and run the check variant. If the check fails, it’s working as expected.

When the check variant is configured to pass on 1+1 results:

  1. Does the check pass when a 1+1 result is achieved? To run the test, create an individual profile with "1+1" as a given name or surname (e.g. "Alex 1+1 Wheeler") and run the check variant. If the check passes, it’s working as expected.
  2. Does the check fail when the conditions are not met for a 1+1 result? To run the test, create an individual profile with "FAIL" as a given name or surname (e.g. "Alex FAIL Wheeler") and run the check variant. If the check fails, it’s working as expected.
In the live environment, an error is displayed when the check variant is run on a profile with a country of address that isn't covered by Onfido. This error is not displayed in the demo environment.
The test words are not case-sensitive.

Required and optional profile fields

These are the profile details searched in Onfido’s sources:

Name

Description

First name(s) (personal_details.name.given_names)

Required

The individual’s first and, if applicable, middle names.

Surname (personal_details.name.family_name)

Required

The individual’s last name.

Date of birth (personal_details.dob)

Required

The individual’s date of birth.

Note that you must provide the full date of birth.

Addresses (address_history)

Required

The individual’s address history.

National identity number (personal_details.national_identity_number)

Optional (US social security numbers only)

The individual’s national identity number for their registered country.

ID verification (PassFort collects documents)

How it works

This is the default behaviour for a variant of the ID verification (PassFort collects documents) check with Onfido as the data provider.

You upload the individual's document to PassFort. PassFort submits the document to Onfido who checks for signs of forgery and extracts the customer’s name, date of birth, and, where possible, nationality from the document.

You can upload these documents for the Verify identity task:

  • Biometric state ID
  • Driving license
  • National health insurance card
  • Passport (including the Irish PassPort Card)
  • Residence permit
  • State ID
  • Tax ID
  • Visa
  • Voter ID
The document size limit is 50MB. The following file types are accepted: GIF, JPG, PNG, PDF, TIFF.

Onfido performs image quality checks and the following security checks on documents:

  • Age validation
  • Police record
  • Compromised document
  • Visual authenticity
To see the checks performed on selfies, see the description of the Check facial similarity configuration option.

PassFort cross-references the details recorded in the individual’s profile (name, date of birth, and, if available, nationality) with the extracted data provided by Onfido.

An image of the document is displayed in the check results.

The check passes when all three criteria are met:

  1. The document details obtained from Onfido match the details in the profile.
  2. Onfido confirms the document is authentic by confirming the status of the check is Clear.
  3. Onfido confirms that any additional checks have passed (e.g. police checks or selfie checks).

If the individual’s details do not match the data in Onfido’s sources, the check fails.

Because cross-referencing the individual’s details is an action performed in PassFort and not in Onfido, it’s possible for the check to pass in Onfido but fail in PassFort.
Note that Onfido may set the status of the check to Consider (with a sub-status of Caution, Suspected, or Rejected), even if the individual components of the check (e.g. Image Integrity, Data Validation) have passed. If Onfido sets the status to Consider, PassFort fails the check. For more information about how Onfido determines the status, see their help article.
When you view the Full results of the check, you can see a result under Document type called Found document of correct type in image. This is a PassFort-specific result that indicates whether the document type you've selected when running the check matches the document type that was submitted.

If the individual’s profile doesn’t have data for the required fields, an error is displayed.

This check variant is supported for all countries.

This check variant cannot be run on the Verify address task. Onfido does not extract the individual’s address from the document so it’s not possible to use this check to confirm proof of address.
For more information about how Onfido handles this check, see Onfido’s documentation.
To get step-by-step instructions for running this check, see Verify a document.

Configuration options

Check facial similarity (optional): When this option is selected, Onfido compares a selfie provided by the individual to the photo in the individual’s identity document. An image of the selfie is displayed in the check results so you can see it. Onfido performs image quality checks and the following security checks for selfies: Face comparison; Visual authenticity.

With ID verification (PassFort collects documents), only selfie checks are supported. To enable liveness checks, you must use ID verification (service collects documents). For more information about how Onfido handles this configuration option, see Onfido’s documentation.

What we’ll need

Let us know that you’d like to add a variant of the ID verification (PassFort collects documents) check with Onfido and which configuration options you’d like to use. We’ll set it up for you.

We’ll need your Sandbox API token, Live API token and Webhook token. Learn how to get your tokens.

Testing your configuration

Once the check variant is configured, follow these steps in your demo environment to test whether it's working as expected.

  1. Does the check pass when the identification document is authentic and the extracted document details obtained from Onfido match the details in the profile? To run the test, use the image below as the image of the identification document and run the check variant. If the check passes, it’s working as expected.
  2. Does the check fail when the identification document is not authentic or the extracted document details obtained from Onfido do not match the details in the profile? To run the test, use the image below as the image of the identification document and run the check variant. If the check fails, it’s working as expected.

Required and optional profile fields

These are the profile details matched with the document details extracted by Onfido:

Name

Description

First name(s) (personal_details.name.given_names)

Required

The individual’s first and, if applicable, middle names.

Surname (personal_details.name.family_name)

Required

The individual’s last name.

Date of birth (personal_details.dob)

Required

The individual’s date of birth.

Addresses (address_history)

Required

The individual's address history.

If you’re running the check via the API, the ID verification check also uses the following field from the ID check’s documents:

Key name

Description

document_id

Required

The document’s unique identifier in PassFort.

ID verification (service collects documents)

Onfido API v1 and v2

When you're using versions 1 or 2 of Onfido's API, the check behaviour is as follows.

How it works

This is the default behaviour for a variant of the ID verification (service collects documents) check with Onfido (API v1 or v2) as the data provider.

The individual submits their documents to Onfido who checks for signs of forgery and extracts the individual’s name, date of birth, and, where possible, nationality from the documents.

You can use this check for these document types:

  • Biometric state ID
  • Driving license
  • National health insurance card
  • Passport (including the Irish PassPort Card)
  • Residence permit
  • State ID
  • Tax ID
  • Visa
  • Voter ID

Onfido performs image quality checks and the following security checks:

  • Age validation
  • Police record
  • Compromised document
  • Visual authenticity
To see the checks performed on selfies and liveness videos, see the description of the Facial similarity check option.

PassFort cross-references the details recorded in the individual’s profile (name, date of birth, and, if available, nationality) with the extracted data provided by Onfido.

An image of the document is displayed in the check results.

The check passes when all three criteria are met:

  1. The document details obtained from Onfido match the details in the profile.
  2. Onfido confirms the document is authentic by confirming the status of the check is Clear.
  3. Onfido confirms that any additional checks have passed (e.g. police checks, selfie checks, or liveness checks).

If the individual’s details do not match the data in Onfido’s sources, the check fails.

Because cross-referencing the individual’s details is an action performed in PassFort and not in Onfido, it’s possible for the check to pass in Onfido but fail in PassFort.
Note that Onfido may set the status of the check to Consider (with a sub-status of Caution, Suspected, or Rejected), even if the individual components of the check (e.g. Image Integrity, Data Validation) have passed. If Onfido sets the status to Consider, PassFort fails the check. For more information about how Onfido determines the status, see their help article.
When you view the Full results of the check in the portal, you can see a result under Document type called Found document of correct type in image. This is a PassFort-specific result that indicates whether the document type you've selected when running the check matches the document type that was submitted. For the ID verification (service collects documents) check, the result will always be Valid.

If the individual’s profile doesn’t have data for the required fields, an error is displayed.

This check variant is supported for all countries.

This check variant cannot be run on the Verify address task. Onfido does not extract the individual’s address from the document so it’s not possible to use this check to confirm proof of address.
For more information about how Onfido handles this check, see Onfido’s documentation.
Configuration options

You can use the following configuration options:

  • API region: Choose which Onfido region you're using. The options are: Europe and USA.
  • Facial similarity check (optional): Choose Selfie, Video, or Video with fallback. Onfido compares a selfie or liveness video to the photo in the individual’s identity document. The selfie or the liveness video is displayed in the check results so you can see it. Onfido performs image quality checks and the following security checks for selfies: Face comparison; Visual authenticity.
    When Selfie is selected, Onfido's facial_similarity_photo report type is used. When Video is selected, Onfido's facial_similarity_video report type is used. When Video with fallback is selected, Onfido's facial_similarity_video report type is used if a video is available (regardless of whether the check passes or fails); otherwise, facial_similarity_photo is used.
If you have this configuration option set to Video, you should set the uploadFallback property to false in your Onfido SDK configuration. Otherwise, Onfido will try to upload a selfie when liveness is not supported by the browser, and the check will error.
What we'll need

This is the same as ID verification (PassFort collects documents). See above for details.

Testing your configuration

Onfido is not contacted in a demo environment. Once the check variant is configured, follow these steps in your staging environment with an Onfido sandbox token to test whether it's working as expected.

  1. Does the check pass when the ID is authentic and the extracted document details obtained from Onfido match the details in the profile?
    To run the test, first create an individual profile with these details:
    1. Any first name and last name.
    2. "1 January 1900" as the date of birth.

    Next, initiate the check variant with Onfido using these details:
    1. The same first name and last name you used on the profile.
    2. "1 January 1900" as the date of birth.
    3. For any other details required by Onfido, use any data. For example, you can use any image as the image of the ID.

    If the check passes, it’s working as expected.
  2. Does the check fail when the ID is authentic but the extracted document details obtained from Onfido do not match the details in the profile?
    To run the test, first create an individual profile with these details:
    1. Any first name and last name.
    2. Any date of birth.

    Next, initiate the check with Onfido using these details:
    1. Any first name and last name that is not what you used on the profile.
    2. Any date of birth.
    3. For any other details required by Onfido, use any data. For example, you can use any image as the image of the ID.

    If the check fails, it’s working as expected.
  3. Does the check fail when the ID is not authentic (even if the extracted document details obtained from Onfido match the details in the profile)?
    To run the test, first create an individual profile with these details:
    1. Any first name.
    2. "consider" as the last name.
    3. Any date of birth.

    Next, initiate the check with Onfido using these details:
    1. The same first name you used on the profile.
    2. "consider" as the last name.
    3. The same first name you used on the profile.
    4. For any other details required by Onfido, use any data. For example, you can use any image as the image of the ID.
When you use "consider" as the individual’s last name, it must be in lower case (e.g. "Alex consider").
Required and optional profile fields

These are the profile details matched with the document details extracted by Onfido:

Name

Description

First name(s) (personal_details.name.given_names)

Required

The individual’s first and, if applicable, middle names.

Surname (personal_details.name.family_name)

Required

The individual’s last name.

Date of birth (personal_details.dob)

Required

The individual’s date of birth.

Onfido API v3

When you're using version 3 of Onfido's API, the check behaviour is as follows.

How it works

This is the default behaviour for a variant of the ID verification (service collects documents) check with Onfido (API v3) as the data provider.

The individual submits their documents to Onfido who checks for signs of forgery and extracts the individual’s name, date of birth, and, where possible, gender and nationality from the documents.

To learn which document types you can use for this check, see Onfido's supported document types.

PassFort will never fail the check because of an unrecognised document. If PassFort cannot recognise the document, the document type will be classified as Miscellaneous. Note that if Onfido cannot recognise the document, the check will fail.
To see the checks performed on selfies and liveness videos, see the description of the Facial similarity check option.

PassFort cross-references the details recorded in the individual’s profile (name, date of birth, and, if available, nationality) with the extracted data provided by Onfido.

If the profile has a customer reference, it is sent to Onfido. The Onfido profile is tagged with the customer reference.

The check passes when all three criteria are met:

  1. The document details obtained from Onfido match the details in the profile.
  2. Onfido confirms the document is authentic by confirming the status of the check is Clear.
  3. Onfido confirms that any additional checks have passed (e.g. police checks, selfie checks, or liveness checks).

If the individual’s details do not match the data in Onfido’s sources, the check fails.

An image of the document is displayed in the check results, along with the overall result (e.g. Pass, Fail) and the reason why the overall result was returned. If the check fails, the Onfido sub-results (e.g. Clear, Consider) are displayed so you can see exactly why the check has failed.

To get a detailed breakdown of the check results in the Portal, click Full results. The Additional information tab shows the Onfido applicant ID and the Onfido results for every category, regardless of whether the check passed or failed.

Because cross-referencing the individual’s details is an action performed in PassFort and not in Onfido, it’s possible for the check to pass in Onfido but fail in PassFort.
Note that Onfido may set the status of the check to Consider (with a sub-status of Caution, Suspected, or Rejected), even if the individual components of the check (e.g. Image Integrity, Data Validation) have passed. If Onfido sets the status to Consider, PassFort fails the check. For more information about how Onfido determines the status, see their help article.
When you view the Full results of the check in the portal, you can see a result under Document type called Found document of correct type in image. This is a PassFort-specific result that indicates whether the document type you've selected when running the check matches the document type that was submitted. For the ID verification (service collects documents) check, the result will always be Valid.

If the individual’s profile doesn’t have data for the required fields, an error is displayed.

This check variant is supported for all countries. See Onfido's supported document types to learn which document types can be used in each country.

This check variant cannot be run on the Verify address task. Onfido does not extract the individual’s address from the document so it’s not possible to use this check to confirm proof of address.
For more information about how Onfido handles this check, see Onfido’s documentation.
Configuration options

You can use the following configuration options:

  • API region: Choose which Onfido region you're using. The options are: Europe, USA, or Canada.
  • Facial similarity check (optional): Choose Selfie, Video, or Video with fallback. Onfido compares a selfie or liveness video to the photo in the individual’s identity document. The selfie or the liveness video is displayed in the check results so you can see it. Onfido performs image quality checks and the following security checks for selfies: Face comparison; Visual authenticity.
    When Selfie is selected, Onfido's facial_similarity_photo report type is used. When Video is selected, Onfido's facial_similarity_video report type is used. When Video with fallback is selected, Onfido's facial_similarity_video report type is used if a video is available (regardless of whether the check passes or fails); otherwise, facial_similarity_photo is used.
If you have this configuration option set to Video, you should set the uploadFallback property to false in your Onfido SDK configuration. Otherwise, Onfido will try to upload a selfie when liveness is not supported by the browser, and the check will error.
  • Document types (SDK only): Select one or more of the document types to run a check against. If no document type has been selected, Onfido will accept any of them by default.
  • Choose Onfido SDK language: Choose one of six languages to display in the user interface.
  • Custom welcome screen: Enter text to show on the introduction screen of the SDK. The introduction screen displays a summary of the steps the user will pass through.
The SDK options only apply when using the Onfido SDK in forms and customer requests sent through PassFort.
  • Retrieve the most recent reports instead of running a new check: Retrieve historic results from Onfido without instructing a new check. Selecting this option ignores the facial similarity check configuration option and if there are multiple Onfido checks on the applicant, only the most recent check result will be retrieved.
What we'll need

This is the same as ID verification (PassFort collects documents). See above for details.

Testing your configuration

Onfido is not contacted in a demo environment. Once the check variant is configured, follow these steps in your staging environment with an Onfido sandbox token to test whether it's working as expected.

  1. Does the check pass when the ID is authentic and the extracted document details obtained from Onfido match the details in the profile?
    To run the test, first create an individual profile with these details:
    1. Any first name and last name.
    2. "1 January 1900" as the date of birth.

    Next, initiate the check variant with Onfido using these details:
    1. The same first name and last name you used on the profile.
    2. "1 January 1900" as the date of birth.
    3. For any other details required by Onfido, use any data. For example, you can use any image as the image of the ID.

    If the check passes, it’s working as expected.
  2. Does the check fail when the ID is authentic but the extracted document details obtained from Onfido do not match the details in the profile?
    To run the test, first create an individual profile with these details:
    1. Any first name and last name.
    2. Any date of birth.

    Next, initiate the check with Onfido using these details:
    1. Any first name and last name that is not what you used on the profile.
    2. Any date of birth.
    3. For any other details required by Onfido, use any data. For example, you can use any image as the image of the ID.

    If the check fails, it’s working as expected.
  3. Does the check fail when the ID is not authentic (even if the extracted document details obtained from Onfido match the details in the profile)?
    To run the test, first create an individual profile with these details:
    1. Any first name.
    2. "consider" as the last name.
    3. Any date of birth.

    Next, initiate the check with Onfido using these details:
    1. The same first name you used on the profile.
    2. "consider" as the last name.
    3. The same first name you used on the profile.
    4. For any other details required by Onfido, use any data. For example, you can use any image as the image of the ID.
When you use "consider" as the individual’s last name, it must be in lower case (e.g. "Alex consider").
Required and optional profile fields

These are the profile details matched with the document details extracted by Onfido:

Name

Description

First name(s) (personal_details.name.given_names)

Required

The individual’s first and, if applicable, middle names.

Surname (personal_details.name.family_name)

Required

The individual’s last name.

Date of birth (personal_details.dob)

Required

The individual’s date of birth.

Gender (personal_details.gender)

Optional

The individual's gender. Leave unset for non-binary genders.

Getting your Onfido tokens

To get your Sandbox API token and Live API token:

  1. Go to https://onfido.com/dashboard/v2/#/api/tokens
  2. Copy the token for the Live environment.
  3. Copy the token for the Sandbox environment.
  4. Send us the Live token from Step 2 and the Sandbox token from Step 3.
Only one Live token and Sandbox token can be used in your PassFort configuration. If you have multiple Live or Sandbox tokens, choose one from each type.

To get your Webhook token:

  1. Go to https://onfido.com/dashboard/v2/#/api/webhook_management
  2. Click Create Webhook.
  3. In the URL field, add: https://api.passfort.com/callback/onfido
  4. Under Receive data from, select Both.
  5. Leave all event notifications enabled.
  6. Click Save. The new webhook is created.
  7. Copy the Token for the new webhook and send it to us.


How did we do?


Powered by HelpDocs (opens in a new tab)