Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update template and UI metadata #16

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ui-metadata/onfido/info.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"id": "ONFIDO",
"version": "v1.0.0",
"name": "Onfido",
"description": "Enable identity verification through Onfido",
"tags": ["Enterprise"],
"description": "Enable identity verification through Onfido.",
"tags": ["Identity-Verification"],
"category": "DEFAULT",
"displayOrder": 1,
"type": "identity-verification-provider",
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": "ONFIDO Identity Verification Provider",
"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"
}
]
}
}
Loading