Set up¶
The following guide explains how you can install and set up Onfido in WSO2 Identity Server.
Prerequisites¶
-
You need to have an Onfido account. To create one, contact the Onfido team.
-
Ensure comparison checks are enabled in your Onfido account. For more details, refer to the Onfido comparison checks documentation.
Step 1: Install the Onfido connector¶
Installing Onfido in WSO2 Identity Server involves two main steps, installing the connector file and installing the web application and resources that handle identity verification requests and responses from Onfido.
Step 1.1: Install the connector file¶
-
From the WSO2 Identity Server Connector Store, download
org.wso2.carbon.identity.verification.onfido.connector-<version>.jar. -
Copy the
jarfile into the<IS_HOME>/repository/components/dropinsdirectory of your WSO2 Identity Server installation.
Step 1.2: Install the web application and resources¶
-
Download the
artifacts.zipfile from the WSO2 Identity Server Connector Store. -
Extract the downloaded zip file.
-
From the extracted folder, copy the
idv#onfido.warfile and paste it into the<IS_HOME>/repository/deployment/server/webappsdirectory. -
In the same extracted folder, copy the
onfidodirectory and paste it into the<IS_HOME>/repository/resources/identity/extensions/identity-verification-providersdirectory.
Step 1.3: Configure access control for Onfido¶
-
Configure the access control for Onfido by adding the following configuration the
<IS_HOME>/repository/conf/deployment.tomlfile. -
Restart WSO2 Identity Server to apply changes.
Step 2: Integrate your Onfido account with WSO2 Identity Server¶
Now that you have installed the Onfido connector, follow the steps below to integrate your Onfido account with WSO2 Identity Server.
Step 2.1: Connect your Onfido account with WSO2 Identity Server¶
-
On the WSO2 Identity Server Console, go to Connections and click New Connections.
-
In the list of templates, find the Onfido card and click Create to add it.
-
Enter a name for the Onfido connector and the necessary configurations:
- API Token: The API token generated via the Onfido dashboard.
- Workflow ID: The unique identifier for the Workflow created using Workflow Studio. For more information refer to the Onfido Workflow Studio.
- Base URL: The regional base URL for Onfido API calls.
-
Click Create to create the Onfido connector.
-
On the created connection, note the URL displayed under the Setup Guide.
Step 2.2: Generate and register an Onfido webhook¶
-
Log in to your Onfido dashboard and navigate to the Webhook configuration section.
-
Generate a Webhook token by providing the URL you noted earlier and selecting only the
workflow_run.completedevent. Onfido will use this webhook to send verification results to WSO2 Identity Server. -
On the WSO2 Identity Server Console, return to the created connection and navigate to its Settings tab.
-
Enter the obtained token in the Webhook Token field, then click Update to finish the setup.
Step 2.3: Map the Onfido attributes with that of WSO2 Identity Server¶
-
Open the created Onfido connection and go to its Attributes tab.
-
Update the mandatory first name and last name attribute mappings to match your Onfido configuration.
-
To add additional attributes,
- Click Add Attribute Mapping.
- Enter the external attribute and select the corresponding local user attribute.
-
Click Update to save the changes.
You have now successfully installed the Onfido connector and integrated your Onfido account with WSO2 Identity Server.