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

fix: IdentityAndTrustService handle multiple VPs #3674

Conversation

paullatzelsperger
Copy link
Member

What this PR changes/adds

This PR improves the IdentityAndTrustService in that it makes it handle multiple VPs.

Why it does that

As per the spec, a CredentialService may return multiple VP tokens, i.e. VerifiablePresentations. So naturally, the
IdentityAndTrustService must verify and parse them all, not just the first one.

Further notes

Receiving an empty list of VPs is technically allowed too, but that would result in an empty ClaimToken, so the policy evaluation would then fail.

Linked Issue(s)

Closes # <-- insert Issue number if one exists

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger added this to the Milestone 13 milestone Nov 30, 2023
@paullatzelsperger paullatzelsperger added bug Something isn't working dcp labels Nov 30, 2023
@paullatzelsperger paullatzelsperger merged commit e6bb3d5 into eclipse-edc:main Nov 30, 2023
19 checks passed
@paullatzelsperger paullatzelsperger deleted the fix/iatp_handle_multiple_vps branch November 30, 2023 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dcp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants