Skip to content

Commit

Permalink
Merge pull request #62 from adorsys/issuer-oid4vc-186-iat-claim
Browse files Browse the repository at this point in the history
Added option for displaying iat, nbf field upon configuring signer. N…
  • Loading branch information
IngridPuppet authored Jul 24, 2024
2 parents cc7b547 + fa43110 commit 4020e21
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TOOLS_DIR=$TARGET_DIR/tools

# Dev dir where to clone keycloak
# KC_TARGET_BRANCH=main
KC_TARGET_BRANCH=issue-30525
KC_TARGET_BRANCH=issuer-oid4vc-186-iat-claim
KC_OID4VCI="keycloak_"$KC_TARGET_BRANCH

# Ensure all sensitive data like passwords and keys are passed through environment variables or secure stores.
Expand Down
30 changes: 30 additions & 0 deletions client-oid4vc.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,26 @@
"supportedCredentialTypes": "test-credential"
}
},
{
"name": "iat-oid4vc-issued-at-time-claim-mapper-test-credential",
"protocol": "oid4vc",
"protocolMapper": "oid4vc-issued-at-time-claim-mapper",
"config": {
"truncateToTimeUnit": "HOURS",
"valueSource": "COMPUTE",
"supportedCredentialTypes": "test-credential"
}
},
{
"name": "nbf-oid4vc-issued-at-time-claim-mapper-test-credential",
"protocol": "oid4vc",
"protocolMapper": "oid4vc-issued-at-time-claim-mapper",
"config": {
"subjectProperty": "nbf",
"valueSource": "COMPUTE",
"supportedCredentialTypes": "test-credential"
}
},
{
"id": "given_name-mapper-001",
"name": "given_name-mapper",
Expand All @@ -110,6 +130,16 @@
"userAttribute": "lastName",
"supportedCredentialTypes": "identity_credential"
}
},
{
"name": "iat-oid4vc-issued-at-time-claim-mapper-identity_credential",
"protocol": "oid4vc",
"protocolMapper": "oid4vc-issued-at-time-claim-mapper",
"config": {
"truncateToTimeUnit": "HOURS",
"valueSource": "COMPUTE",
"supportedCredentialTypes": "identity_credential"
}
}
]
}
1 change: 1 addition & 0 deletions signing_service-IdentityCredential.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"tokenType": ["vc+sd-jwt"],
"vcConfigId": ["IdentityCredential"],
"vct": ["https://credentials.example.com/identity_credential"],
"visibleClaims": ["iat,nbf"],
"decoys": [2]
}
}
1 change: 1 addition & 0 deletions signing_service-test-credential.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"tokenType": ["vc+sd-jwt"],
"vcConfigId": ["test-credential"],
"vct": ["https://credentials.example.com/test-credential"],
"visibleClaims": ["iat,nbf"],
"decoys": [2]
}
}

0 comments on commit 4020e21

Please sign in to comment.