Skip to content

Commit

Permalink
Update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaShakthi97 committed Oct 7, 2024
1 parent 7153e97 commit baabe3c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 46 deletions.
1 change: 1 addition & 0 deletions ui-metadata/onfido/info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "ONFIDO",
"version": "v1.0.0",
"name": "Onfido",
"description": "Enable identity verification through Onfido.",
"tags": ["Identity-Verification"],
Expand Down
38 changes: 24 additions & 14 deletions ui-metadata/onfido/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,22 @@
"required": true,
"placeholder": "My Identity Verification Provider",
"data-componentid": "idvp-create-wizard-idvp-name",
"validators": [
"uniqueValueValidator"
"handlers": [
{
"name": "uniqueIdentityVerificationProviderName",
"type": "initialize"
},
{
"name": "identityVerificationProviderName",
"type": "validation"
}
],
"helperText": "An unique name for the Identity Verification Provider."
},
{
"id": "token",
"aria-label": "API Token",
"name": "token",
"name": "configProperties.token",
"label": "API Token",
"type": "password",
"required": true,
Expand All @@ -29,7 +36,7 @@
{
"id": "workflow_id",
"aria-label": "Workflow ID",
"name": "workflow_id",
"name": "configProperties.workflow_id",
"label": "Workflow ID",
"type": "text",
"required": true,
Expand All @@ -39,7 +46,7 @@
{
"id": "base_url",
"aria-label": "Base URL",
"name": "base_url",
"name": "configProperties.base_url",
"label": "Base URL",
"type": "text",
"required": true,
Expand All @@ -53,9 +60,10 @@
"edit": {
"tabs": [
{
"id": "guide",
"id": "setup-guide",
"displayName": "Setup Guide",
"contentType": "guide"
"contentType": "guide",
"guide": "## OnFido Connector Configuration Instructions\n***\n***\n***\nThis guide outlines the steps to configure the OnFido Connector with ${productName}.\n***\n***\n***\n***\n### Obtain the OnFido Webhook token\n<!--rehype:numbered=true&content=1-->\n***\n***\nLogin to your OnFido dashboard and navigate to the Webhook configuration section. Generate the Webhook token by providing the following URL.\n***\n```bash\n${webhookUrl}\n```\n***\n***\n***\n***\n### Configure the OnFido connection\n<!--rehype:numbered=true&content=2-->\n***\n***\nNavigate to the [Settings tab](#tab=settings)<!--rehype:external=false--> and provide the obtained token to the Webhook Token field. Then click on Update to finish the setup.\n***\n***\n***\n***\n### Configure attribute mappings\n<!--rehype:numbered=true&content=3-->\n***\n***\nIf you need to provide additional attribute mappings, navigate to the [Attributes tab](#tab=attributes)<!--rehype:external=false--> and provide the attribute mappings.\n***\n***\n***\n***\n### Integrate OnFido Identity Verification into Your Application\n<!--rehype:numbered=true&content=4-->\n***\n***\nYou can integrate OnFido identity verification into your application, using the OnFido SDK.\n***\n***\nTo initiate the verification flow with OnFido, via ${productName} APls, the following Identity Verification Provider ID will be required. Please refer to the connector documentation for more details.\n***\n```bash\n${identityVerificationProviderId}\n``` "
},
{
"id": "general",
Expand All @@ -72,8 +80,11 @@
"required": true,
"placeholder": "My Identity Verification Provider",
"data-componentid": "idvp-edit-form-idvp-name",
"validators": [
"uniqueValueValidator"
"handlers": [
{
"name": "identityVerificationProviderName",
"type": "validation"
}
],
"helperText": "An unique name for the Identity Verification Provider."
},
Expand All @@ -100,7 +111,7 @@
{
"id": "token",
"aria-label": "API Token",
"name": "token",
"name": "configProperties.token",
"label": "API Token",
"type": "password",
"required": true,
Expand All @@ -110,7 +121,7 @@
{
"id": "webhook_token",
"aria-label": "Webhook Token",
"name": "webhook_token",
"name": "configProperties.webhook_token",
"label": "Webhook Token",
"type": "password",
"required": true,
Expand All @@ -120,7 +131,7 @@
{
"id": "workflow_id",
"aria-label": "Workflow ID",
"name": "workflow_id",
"name": "configProperties.workflow_id",
"label": "Workflow ID",
"type": "text",
"required": true,
Expand All @@ -130,11 +141,10 @@
{
"id": "base_url",
"aria-label": "Base URL",
"name": "base_url",
"name": "configProperties.base_url",
"label": "Base URL",
"type": "text",
"required": true,
"defaultValue": "https://api.eu.onfido.com/v3.6",
"data-componentid": "idvp-edit-form-base-url",
"helperText": "The base URL of OnFido server."
}
Expand Down
67 changes: 35 additions & 32 deletions ui-metadata/onfido/template.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
{
"Type": "ONFIDO",
"Name": "Onfido",
"description": "Enable identity verification through Onfido.",
"isEnabled": true,
"claims": [
{
"localClaim": "http://wso2.org/claims/givenname",
"idvpClaim": "first_name"
},
{
"localClaim": "http://wso2.org/claims/lastname",
"idvpClaim": "last_name"
}
],
"configProperties": [
{
"key": "token",
"value": ""
},
{
"key": "webhook_token",
"value": ""
},
{
"key": "workflow_id",
"value": ""
},
{
"key": "base_url",
"value": "https://api.eu.onfido.com/v3.6"
}
]
"payload": {
"type": "ONFIDO",
"name": "Onfido",
"description": "Enable identity verification through Onfido.",
"image": "https://raw.githubusercontent.com/wso2-extensions/identity-verification-onfido/main/ui-metadata/images/onfido-icon.png",
"isEnabled": true,
"claims": [
{
"localClaim": "http://wso2.org/claims/givenname",
"idvpClaim": "first_name"
},
{
"localClaim": "http://wso2.org/claims/lastname",
"idvpClaim": "last_name"
}
],
"configProperties": [
{
"key": "token",
"value": ""
},
{
"key": "webhook_token",
"value": ""
},
{
"key": "workflow_id",
"value": ""
},
{
"key": "base_url",
"value": "https://api.eu.onfido.com/v3.6"
}
]
}
}

0 comments on commit baabe3c

Please sign in to comment.