The Universal Verifier supports various configuration settings that can be configured per account.
oid4vp
Using this setting, various aspects of the OID4VP functionality of the Universal Verifier can be specified.
The following request will get the oid4vp
configuration value.
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://profile.godiddy.com/0.1.0/profile/metadata/oid4vp"
The following request will set the oid4vp
configuration value.
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X PUT "https://profile.godiddy.com/0.1.0/profile/metadata/oid4vp" \
-H "Content-Type: application/json" \
-d '{
"clientConfig": {
"responseMode": "direct_post",
"responseType": "vp_token",
"clientIdScheme": "did",
"clientDid": "did:key:zDnaet6i5C95fPDR9MaHRiroWg6foddVgFuF4Vk8pExQwZVNa",
"clientKid": "did:key:zDnaet6i5C95fPDR9MaHRiroWg6foddVgFuF4Vk8pExQwZVNa#zDnaet6i5C95fPDR9MaHRiroWg6foddVgFuF4Vk8pExQwZVNa",
"metadata": {
"vp_formats": {
"jwt_vp_json": {
"alg": [
"ES256"
]
},
"jwt_vc_json": {
"alg": [
"ES256"
]
},
"jwt_vc": {
"alg": [
"ES256"
]
},
"jwt_vp": {
"alg": [
"ES256"
]
}
}
}
},
"presentationDefinitions": {
"LanguageCredential": {
"id": "LanguageCredential",
"input_descriptors": [
{
"id": "LanguageCredential",
"format": {
"jwt_vc_json": {
"alg": [
"ES256"
]
},
"jwt_vp_json": {
"alg": [
"ES256"
]
},
"jwt_vc": {
"alg": [
"ES256"
]
},
"jwt_vp": {
"alg": [
"ES256"
]
}
},
"constraints": {
"fields": [
{
"path": [
"$.vc.type[1]",
"$.type[1]"
],
"filter": {
"type": "string",
"pattern": "LanguageCredential"
}
},
{
"path": [
"$.vc.credentialSubject.languageProficiency.examType",
"$.credentialSubject.languageProficiency.examType"
],
"filter": {
"type": "string",
"pattern": "CEFR_ENGLISH_TEST"
}
}
]
}
}
]
},
"OpenBadgeCredential": {
"id": "OpenBadgeCredential",
"input_descriptors": [
{
"id": "OpenBadgeCredential",
"format": {
"jwt_vc_json": {
"alg": [
"ES256"
]
},
"jwt_vp_json": {
"alg": [
"ES256"
]
},
"jwt_vc": {
"alg": [
"ES256"
]
},
"jwt_vp": {
"alg": [
"ES256"
]
}
},
"constraints": {
"fields": [
{
"path": [
"$.vc.type[1]",
"$.type[1]"
],
"filter": {
"type": "string",
"pattern": "OpenBadgeCredential"
}
}
]
}
}
]
},
"PermanentResidentCard": {
"id": "PermanentResidentCard",
"input_descriptors": [
{
"id": "PermanentResidentCard",
"format": {
"jwt_vc_json": {
"alg": [
"ES256"
]
},
"jwt_vp_json": {
"alg": [
"ES256"
]
},
"jwt_vc": {
"alg": [
"ES256"
]
},
"jwt_vp": {
"alg": [
"ES256"
]
}
},
"constraints": {
"fields": [
{
"path": [
"$.vc.type[1]",
"$.type[1]"
],
"filter": {
"type": "string",
"pattern": "PermanentResidentCard"
}
}
]
}
}
]
}
}
}'