Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IATP: attach the entire VerifiableCredential to the ClaimToken #3855

Closed
paullatzelsperger opened this issue Feb 13, 2024 · 0 comments · Fixed by #3856
Closed

IATP: attach the entire VerifiableCredential to the ClaimToken #3855

paullatzelsperger opened this issue Feb 13, 2024 · 0 comments · Fixed by #3856
Assignees
Labels
dcp enhancement New feature or request
Milestone

Comments

@paullatzelsperger
Copy link
Member

paullatzelsperger commented Feb 13, 2024

Feature Request

When we create the ClaimToken based on a set of VerifiableCredentials we should attach the entire VC instead of
only attaching the credentialSubject.

Which Areas Would Be Affected?

IdentityAndTrustService.java

Why Is the Feature Desired?

Some evaluation functions may target fields other than the credentialSubject, e.g. the credential type, or have some custom logic like "credential must have a remaining validity period of 10 days" etc.

Solution Proposal

the ClaimToken contains an entry keyed vc that contains all verifiable credentials in a list:

"vc" : [
  {
    "id": <ID>,
    "name": <NAME>,
    "types": [<type1>, <type2>],
    "credentialSubject": {
      "id": <subjectId>,
      "claim1": "value1",
      "claim2": "value2"
    }
  },
  ...
] 

Ideally, this is pluggable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dcp enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant