Created
June 5, 2023 04:20
-
-
Save rbrayb/34d366189e9df9e29379e57a53d0c5aa to your computer and use it in GitHub Desktop.
Display and rules files for VC sample 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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
https://medium.com/the-new-control-plane/getting-the-verifiable-credentials-net-sample-3-working-part-1-aa78bae8ca3c