Skip to content

fix: deliver credentials with their own credentialType - #1144

Merged
paullatzelsperger merged 1 commit into
eclipse-edc:mainfrom
paullatzelsperger:fix/1143_delivered_credential_type
Oct 12, 2026
Merged

paullatzelsperger merged 1 commit into
eclipse-edc:mainfrom
paullatzelsperger:fix/1143_delivered_credential_type

Conversation

@paullatzelsperger

Copy link
Copy Markdown
Member

What this PR changes/adds

  • The credentialType of each credential in the CredentialMessage that the IssuerService delivers to a Holder is the
    type of the credential besides VerifiableCredential, i.e. the type of its credential definition, e.g.
    MembershipCredential. A credential without another type falls back to VerifiableCredential.

Why it does that

DcpCredentialStorageClient filtered the types of the credential for VerifiableCredential instead of excluding it, so
every delivered credential had the credentialType "VerifiableCredential", and a Holder that relies on it got the
wrong type. A credential without the type VerifiableCredential made the delivery throw. The IdentityHub as Holder was
not affected, as it reads the types from the credential itself.

Linked Issue(s)

Closes #1143

🤖 Generated with Claude Code

The CredentialMessage that delivers credentials to a Holder had the credentialType
"VerifiableCredential" for every credential, because the type list was filtered
for it instead of excluding it, and a credential without that type could not be
delivered at all. The credentialType is now the type of the credential besides
VerifiableCredential, i.e. the type of its credential definition.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@paullatzelsperger
paullatzelsperger requested a review from a team as a code owner October 12, 2026 09:21
@paullatzelsperger paullatzelsperger added the bug Something isn't working label Oct 12, 2026
@paullatzelsperger
paullatzelsperger merged commit 2bf7799 into eclipse-edc:main Oct 12, 2026
19 of 22 checks passed
@paullatzelsperger
paullatzelsperger deleted the fix/1143_delivered_credential_type branch October 12, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delivered credentials always have the credentialType "VerifiableCredential"

2 participants