Skip to content

fix: use id insted of clientId when generating the token #666

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

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

wolf4ood
Copy link
Contributor

What this PR changes/adds

Currently when generating a token for an StsAccount with the StsClientTokenGeneratorServiceImpl the client#clientId property is used as participantContextId passed to the ParticipantSecureTokenService. But when creating an StsAccount in the StsAccountServiceImpl the clientId is sourced by the ParticipantManifest#did, which means that
The StsClientTokenGeneratorServiceImpl works only if the participantContextId is equals to the did of the participant.

This fixes it by using the id instead of clientId of the StsAccount

Why it does that

Briefly state why the change was necessary.

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Who will sponsor this feature?

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

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.

@wolf4ood wolf4ood changed the title fix: use client#id insted of client#client_id when generating the token fix: use client#id insted of client#clientId when generating the token Mar 12, 2025
@wolf4ood wolf4ood changed the title fix: use client#id insted of client#clientId when generating the token fix: use id insted of clientId when generating the token Mar 12, 2025
@wolf4ood wolf4ood added the bug Something isn't working label Mar 12, 2025
@wolf4ood wolf4ood self-assigned this Mar 12, 2025
@wolf4ood wolf4ood marked this pull request as ready for review March 12, 2025 12:21
@wolf4ood wolf4ood merged commit 12e0f6f into eclipse-edc:main Mar 12, 2025
22 of 25 checks passed
@wolf4ood wolf4ood deleted the fix/sts_client_token_generator branch March 12, 2025 14:15
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.

2 participants