Skip to content

fix: copy CredentialObject ID from received credential offer messages - #1057

Merged
paullatzelsperger merged 2 commits into
eclipse-edc:mainfrom
paullatzelsperger:fix/1056-credential-object-id
Aug 12, 2026
Merged

fix: copy CredentialObject ID from received credential offer messages#1057
paullatzelsperger merged 2 commits into
eclipse-edc:mainfrom
paullatzelsperger:fix/1056-credential-object-id

Conversation

@paullatzelsperger

Copy link
Copy Markdown
Member

What this PR changes/adds

Copies the @id of each CredentialObject from an incoming DCP CredentialOfferMessage into the stored CredentialOffer entity in the CredentialOfferApiController.

Adds DcpCredentialOfferApiEndToEndTest, which covers the DCP Credential Offer API (POST /v1/participants/{participantContextId}/offers) end-to-end with an IdentityHub and an IssuerService runtime: the happy path asserts that a received offer is stored and processed, that the offer handler initiates a holder credential request carrying the offered credential object ID, and that the resulting DCP credential request is registered (APPROVED) on the issuer service. Validation and auth error cases (400/401/403) are covered as well, both in-memory and against PostgreSQL.

Why it does that

The credential object @id is the issuer-assigned ID that the holder must reference in the subsequent CredentialRequestMessage. Since it was dropped during mapping, the credential request triggered by an offer referenced a credential object ID the issuer does not know, breaking offer-based issuance.

Linked Issue(s)

Closes #1056

🤖 Generated with Claude Code

@paullatzelsperger
paullatzelsperger requested a review from a team as a code owner August 12, 2026 13:06
@paullatzelsperger paullatzelsperger added the bug Something isn't working label Aug 12, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@paullatzelsperger
paullatzelsperger force-pushed the fix/1056-credential-object-id branch from 6330414 to 9556c7b Compare August 12, 2026 13:12
@paullatzelsperger
paullatzelsperger merged commit f57067b into eclipse-edc:main Aug 12, 2026
27 of 28 checks passed
@paullatzelsperger
paullatzelsperger deleted the fix/1056-credential-object-id branch August 12, 2026 13:56
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.

DCP Credential Offer API: CredentialObject ID is not copied from the offer message

2 participants