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

feat: enable Multi-Tenancy in PresentationApi #263

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Feb 5, 2024

What this PR changes/adds

This PR adds "multi-tenancy" to the presentation API by adding the following aspects:

  • prepending the participants/{participantId} path to the Presentation API
  • checking that a ParticipantContext with that ID actually exists
  • tunnelling through the participantId through all layers of the presentation generation
  • updating the AccessTokenVerifier to verify that the participantContextId matches the access_token.aud claim
  • updating the PresentationCreatorRegistryImpl so that it uses the KeyPairService to obtain the correct key-id for the participant

Why it does that

multi-tenancy was not implemented when the presentation API was first created

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.

Linked Issue(s)

Closes #259

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

@paullatzelsperger paullatzelsperger added enhancement New feature or request api breaking-change Will require manual intervention for version update labels Feb 5, 2024
@paullatzelsperger paullatzelsperger changed the title fix: enable Multi-Tenancy in PresentationApi feat: enable Multi-Tenancy in PresentationApi Feb 5, 2024
@paullatzelsperger paullatzelsperger force-pushed the fix/259_enable_multitenancy_in_presentationcreatorregistry branch from a3e0986 to 973afc8 Compare February 6, 2024 07:56
@paullatzelsperger paullatzelsperger merged commit 2393fdf into eclipse-edc:main Feb 6, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api breaking-change Will require manual intervention for version update enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Presentation API: add support for multi-tenancy
3 participants