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: prevent default identity extractor from being registered #1597

Conversation

paullatzelsperger
Copy link
Contributor

WHAT

This PR prevents the upstream DefaultDcpParticipantAgentServiceExtension from being registered with the ParticipantAgentService by declaring a provider method for the IatpIdentityExtractor

WHY

the IatpIdentityExtractor was not added to the service context, which means, that at runtime, both the DefaultDcpParticipantAgentServiceExtension and the IatpIdentityExtractor are present.
That means, that whichever is registered first, determines the ID property of the ParticipantAgent, either credentialSubject.Id, or credentialSubject.holderIdentifier. We need the latter, because that contains the BPN.

FURTHER NOTES

The fact that this bug hasn't surfaced earlier is pure chance, because apparently the IatpIdentityExtractor got registered later.

Closes # <-- insert Issue number if one exists

@paullatzelsperger paullatzelsperger added the bug Something isn't working label Sep 30, 2024
Copy link

sonarcloud bot commented Sep 30, 2024

@paullatzelsperger paullatzelsperger merged commit 34eced3 into eclipse-tractusx:main Sep 30, 2024
32 checks passed
@paullatzelsperger paullatzelsperger deleted the fix/prevent_default_identity_extractor branch September 30, 2024 16:48
paullatzelsperger added a commit to paullatzelsperger/tractusx-edc that referenced this pull request Oct 1, 2024
…e-tractusx#1597)

* fix(dcp): prevent default identity extractor from being registered

* fix unit tests
paullatzelsperger added a commit that referenced this pull request Oct 1, 2024
…stered (#1598)

* fix: prevent default identity extractor from being registered (#1597)

* fix(dcp): prevent default identity extractor from being registered

* fix unit tests

* DEPENDENCIES, helm docs
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
Status: Merged
Development

Successfully merging this pull request may close these issues.

2 participants