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

PIN-5442 - Update e-service request caller assertions to accept delegates #1099

Open
wants to merge 12 commits into
base: feature/pin-5126-capofila
Choose a base branch
from

Conversation

Carminepo2
Copy link
Contributor

@Carminepo2 Carminepo2 commented Oct 15, 2024

Most of the changes of this PR are tests, reviewing this PR you could skip the .test files which are a bit of a copy-paste.

Splitted assertRequesterAllowed assertion functions in two: assertRequesterIsDelegateOrProducer and assertRequesterIsProducer.

assertRequesterIsDelegateOrProducer allows the requester to access the call only if:

  • there is no active delegation for the related e-service and the requester is the its producer;
  • there is an active delegation and the requester is its delegate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant