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:
- 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.
- 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:
- The individual’s full name, date of birth, and address are matched in one source.
- 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.
Configuration options
You have the following configuration options:
- Pass check on 1+1 result (optional): 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 (optional): 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 (optional): 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.
- Fail the check if a mortality result is found (optional): 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):
- 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.
- 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.
- 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:
- 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.
- 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.
Required and optional profile fields
These are the profile details searched in Onfido’s sources:
Name | Description |
First name(s) ( Required | The individual’s first and, if applicable, middle names. |
Surname ( Required | The individual’s last name. |
Date of birth ( Required | The individual’s date of birth. Note that you must provide the full date of birth. |
Addresses ( Required | The individual’s address history. |
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
Onfido performs image quality checks and the following security checks on documents:
- Age validation
- Police record
- Compromised document
- Visual authenticity
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:
- The document details obtained from Onfido match the details in the profile.
- Onfido confirms the document is authentic by confirming the status of the check is Clear.
- 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.
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.
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.
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.
- 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.
- 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) ( Required | The individual’s first and, if applicable, middle names. |
Surname ( Required | The individual’s last name. |
Date of birth ( Required | The individual’s date of birth. |
Addresses ( 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 |
Required | The document’s unique identifier in PassFort. |
ID verification (service collects documents)
How it works
This is the default behaviour for a variant of the ID verification (service collects documents) check with Onfido 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
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:
- The document details obtained from Onfido match the details in the profile.
- Onfido confirms the document is authentic by confirming the status of the check is Clear.
- 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.
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.
Configuration options
Facial similarity check (optional): Choose Selfie or Video. 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.
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
Once the check variant is configured, follow these steps in your demo environment to test whether it's working as expected.
- 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:- Any first name and last name.
- "1 January 1900" as the date of birth.
Next, initiate the check variant with Onfido using these details:- The same first name and last name you used on the profile.
- "1 January 1900" as the date of birth.
- 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. - 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:- Any first name and last name.
- Any date of birth.
Next, initiate the check with Onfido using these details:- Any first name and last name that is not what you used on the profile.
- Any date of birth.
- 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. - 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:- Any first name.
- "consider" as the last name.
- Any date of birth.
Next, initiate the check with Onfido using these details:- The same first name you used on the profile.
- "consider" as the last name.
- The same first name you used on the profile.
- For any other details required by Onfido, use any data. For example, you can use any image as the image of the ID.
Required and optional profile fields
These are the profile details matched with the document details extracted by Onfido:
Name | Description |
First name(s) ( Required | The individual’s first and, if applicable, middle names. |
Surname ( Required | The individual’s last name. |
Date of birth ( Required | The individual’s date of birth. |
Getting your Onfido tokens
To get your Sandbox API token and Live API token:
- Go to https://onfido.com/dashboard/v2/#/api/tokens
- Copy the token for the Live environment.
- Copy the token for the Sandbox environment.
- Send us the Live token from Step 2 and the Sandbox token from Step 3.
To get your Webhook token:
- Go to https://onfido.com/dashboard/v2/#/api/webhook_management
- Click Create Webhook.
- In the URL field, add: https://api.passfort.com/callback/onfido
- Under Receive data from, select Both.
- Leave all event notifications enabled.
- Click Save. The new webhook is created.
- Copy the Token for the new webhook and send it to us.