Skip to main content

Conformity Credential

info

Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.

Description

The ConformityCredential component allows users to request and manage conformity credentials. It displays a list of available credential requests as buttons and a table of stored credentials. The component handles the process of requesting credentials from a specified API, storing them locally, and displaying them in a table format.

Example

{
"name": "ConformityCredential",
"type": "Void",
"props": {
"credentialRequestConfigs": [
{
"url": "http://example.com/deforestation-free-assessment",
"params": {},
"options": {
"headers": [],
"method": "POST"
},
"credentialName": "Deforestation Free Assessment",
"credentialPath": "/body/credential",
"appOnly": "Farm"
},
{
"url": "http://example.com/ce",
"params": {},
"options": {
"headers": [],
"method": "GET"
},
"credentialName": "CE Marking",
"credentialPath": "",
"appOnly": "Farm"
},
{
"url": "http://example.com/conformity",
"params": {},
"options": {
"headers": [],
"method": "POST"
},
"credentialName": "Conformity",
"appOnly": "Feedlot"
}
],
"storedCredentialsConfig": {
"url": "http://localhost:3334/v1/documents",
"params": {
"bucket": "verifiable-credentials"
},
"options": {
"method": "POST",
"headers": {
"Content-Type": "application/json"
}
}
}
}
}

Definitions

PropertyRequiredDescriptionType
nameYesThe name of the component (should be "ConformityCredential")String
typeYesThe type of the component (should be "Void")ComponentType
propsYesThe properties for the ConformityCredentialProps

Props

PropertyRequiredDescriptionType
credentialRequestConfigsYesAn array of credential request configurationsCredentialRequestConfig[]
storedCredentialsConfigYesConfiguration for storing credentialsStorage

CredentialRequestConfig

PropertyRequiredDescriptionType
urlYesThe URL for the credential requestString
paramsNoParameters for the requestObject
optionsYesRequest optionsRequestOptions
credentialNameYesThe name of the credentialString
credentialPathNoThe path to extract the credential from the responseString
appOnlyYesThe application context for the credentialString

RequestOptions

PropertyRequiredDescriptionType
headersNoHeaders for the requestArray
methodYesHTTP method for the requestString