Skip to content

Instantly share code, notes, and snippets.

@rbrayb
Created October 28, 2023 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbrayb/bbb3738e22b2416f5301639eb31ab7e9 to your computer and use it in GitHub Desktop.
Save rbrayb/bbb3738e22b2416f5301639eb31ab7e9 to your computer and use it in GitHub Desktop.
Configuring an Entra VC and testing it via Postman
{
"locale": "en-US",
"card": {
"backgroundColor": "#E74C3C",
"description": "Azure UG Plus verified member",
"issuedBy": "Azure UG",
"textColor": "#ffffff",
"title": "Azure UG Plus member",
"logo": {
"description": "Gourmet pastry",
"uri": "https://.../didvcbranding/muffin.jpg"
}
},
"consent": {
"instructions": "Consent to become Azure UG Plus member",
"title": "UG Plus consent"
},
"claims": [
{
"claim": "vc.credentialSubject.firstName",
"label": "Name",
"type": "String"
},
{
"claim": "vc.credentialSubject.lastName",
"label": "Surname",
"type": "String"
}
]
}
{
"includeQRCode": true,
"callback": {
"url": "https://example.com",
"state": "abce",
"headers": {
"api-key": "API for ISSUER CALLBACK API"
}
},
"authority": "did:ion:...J9fQ",
"registration": {
"clientName": "Azure UG Plus"
},
"type": "AzureUGPlus",
"manifest": "https://verifiedid.did.msidentity.com/v1.0/tenants/00d...c79/verifiableCredentials/contracts/76d...88/manifest",
"claims": {
"given_name": "Joe",
"family_name": "Bloggs"
}
}
{
"includeQRCode": true,
"callback": {
"url": "https://example.com",
"state": "dasd",
"headers": {
"api-key": "an-api-key-can-go-here"
}
},
"authority": "{{AuthorityDID}}",
"registration": {
"clientName": "Azure UG Plus"
},
"requestedCredentials": [
{
"type": "AzureUGPlus",
"purpose": "So we can check your real identity.",
"acceptedIssuers": [
],
"configuration": {
"validation": {
"allowRevoked": false,
"validateLinkedDomain": true
}
}
}
]
}
{
"attestations": {
"idTokenHints": [
{
"mapping": [
{
"outputClaim": "firstName",
"required": true,
"inputClaim": "$.given_name",
"indexed": false
},
{
"outputClaim": "lastName",
"required": true,
"inputClaim": "$.family_name",
"indexed": false
}
],
"required": false
}
]
},
"validityInterval": 2592000,
"vc": {
"type": [
"AzureUGPlus"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment