Skip to content

Commit

Permalink
Init door code claim
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Jul 8, 2023
1 parent d1b258c commit c92fc5d
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
6 changes: 6 additions & 0 deletions EmployeeUnlockDoor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_solutionItems", "_solution
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_customSelfIssuedAttestation", "_customSelfIssuedAttestation", "{647FD114-6F00-4378-86A2-9E8CD755D863}"
ProjectSection(SolutionItems) = preProject
_customSelfIssuedAttestation\self-issued-attestation-rules-settings.json = _customSelfIssuedAttestation\self-issued-attestation-rules-settings.json
_customSelfIssuedAttestation\self-issued-attestation-settings.json = _customSelfIssuedAttestation\self-issued-attestation-settings.json
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ ngrok http https://localhost:5002

## Links


https://learn.microsoft.com/en-us/azure/active-directory/verifiable-credentials/how-to-use-quickstart-multiple

https://learn.microsoft.com/en-us/azure/active-directory/verifiable-credentials/admin-api#claimmapping-type
https://learn.microsoft.com/en-us/azure/active-directory/verifiable-credentials/admin-api#attestations-type

https://github.com/swiss-ssi-group/AzureADVerifiableCredentialsAspNetCore

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"attestations": {
"selfIssued": {
"mapping": [
{
"outputClaim": "doorCode",
"required": true,
"inputClaim": "doorCode",
"indexed": false
}
],
"required": false
}
},
"validityInterval": 2592000,
"vc": {
"type": [
"DoorCode"
]
}
}
26 changes: 26 additions & 0 deletions _customSelfIssuedAttestation/self-issued-attestation-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"locale": "en-US",
"card": {
"title": "Door code",
"issuedBy": "damienbodsharepoint",
"backgroundColor": "#555fff",
"textColor": "#000000",
"logo": { // png works, svg does not
"uri": "https://raw.githubusercontent.com/swiss-ssi-group/TrinsicAspNetCore/main/src/NationalDrivingLicense/wwwroot/ndl_car_01.png",
//"uri": "https://raw.githubusercontent.com/swiss-ssi-group/AzureADVerifiableCredentialsAspNetCore/main/IssuerDrivingLicense/wwwroot/user-regular.svg",
"description": "damienbodsharepoint office door code"
},
"description": "Door Code"
},
"consent": {
"title": "Door code",
"instructions": "Enter door code to gain access"
},
"claims": [
{
"claim": "vc.credentialSubject.doorCode",
"label": "Door code",
"type": "String"
}
]
}

0 comments on commit c92fc5d

Please sign in to comment.