Skip to content

Instantly share code, notes, and snippets.

@rbrayb
Created June 5, 2023 04:20
Show Gist options
  • Save rbrayb/34d366189e9df9e29379e57a53d0c5aa to your computer and use it in GitHub Desktop.
Save rbrayb/34d366189e9df9e29379e57a53d0c5aa to your computer and use it in GitHub Desktop.
Display and rules files for VC sample 3
{
"locale": "en-US",
"card": {
"title": "B2CVerifiedAccount",
"issuedBy": "B2CTenant",
"backgroundColor": "#B8CEC1",
"textColor": "#ffffff",
"logo": {
"uri": "https://cljungdemob2c.blob.core.windows.net/uxcust/templates/images/snoopy-small.jpg",
"description": "B2C Logo"
},
"description": "Use your verified credential card to prove you have a B2C account."
},
"consent": {
"title": "Do you want to get your B2C VC card?",
"instructions": "Sign in with your account to get your card."
},
"claims": [
{
"claim": "vc.credentialSubject.firstName",
"label": "First name",
"type": "String"
},
{
"claim": "vc.credentialSubject.lastName",
"label": "Last name",
"type": "String"
}
]
}
{
"attestations": {
"idTokenHints": [
{
"mapping": [
{
"outputClaim": "oid",
"required": true,
"inputClaim": "oid",
"indexed": false
},
{
"outputClaim": "tid",
"required": true,
"inputClaim": "tid",
"indexed": false
},
{
"outputClaim": "firstName",
"required": true,
"inputClaim": "firstName",
"indexed": false
},
{
"outputClaim": "lastName",
"required": true,
"inputClaim": "lastName",
"indexed": false
}
],
"required": true
}
]
},
"validityInterval": 2592000,
"vc": {
"type": [
"B2CVerifiedAccount"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment