Skip to content

fix: make VP holder property optional#5697

Merged
paullatzelsperger merged 2 commits intoeclipse-edc:mainfrom
paullatzelsperger:fix/presentation_holder_is_optional
Apr 23, 2026
Merged

fix: make VP holder property optional#5697
paullatzelsperger merged 2 commits intoeclipse-edc:mainfrom
paullatzelsperger:fix/presentation_holder_is_optional

Conversation

@paullatzelsperger
Copy link
Copy Markdown
Member

@paullatzelsperger paullatzelsperger commented Apr 23, 2026

What this PR changes/adds

This PR achieves two things:

  • for VCDM2.0/JOSE presentations the holder property is taken from the holder claim, not the iss claim
  • if no holder property is present on a presentation, the HasValidSubjectIds rule is not applied

Why it does that

the holder property is optional in both VCDM1.1 and VCDM2.0 and DCP does not require it either.

Further notes

  • claude was used to create the commit message

Who will sponsor this feature?

Please @-mention the committer that will sponsor your feature.

Linked Issue(s)

Closes #5695

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

@paullatzelsperger paullatzelsperger requested a review from a team as a code owner April 23, 2026 09:25
@paullatzelsperger paullatzelsperger added bug Something isn't working dcp labels Apr 23, 2026
- JwtToVerifiablePresentationTransformer now reads an explicit `holder`
  claim from the VP JWT and falls back to the `iss` (issuer) claim when
  absent, instead of always using the issuer
- VerifiableCredentialValidationServiceImpl skips HasValidSubjectIds
  validation when the presentation holder is null, allowing VPs that
  carry no holder to pass validation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@paullatzelsperger paullatzelsperger force-pushed the fix/presentation_holder_is_optional branch from 97a008e to 4fcdade Compare April 23, 2026 09:28
@paullatzelsperger paullatzelsperger merged commit c7717a6 into eclipse-edc:main Apr 23, 2026
34 of 35 checks passed
@paullatzelsperger paullatzelsperger deleted the fix/presentation_holder_is_optional branch April 23, 2026 10:31
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

2 participants