Skip to content

AuthorizedParties filter on the requesting serviceowner and specific resource access#1750

Merged
jonkjetiloye merged 16 commits intomainfrom
feat/POC_ProviderFilterOnAuthorizedParties
Jan 12, 2026
Merged

AuthorizedParties filter on the requesting serviceowner and specific resource access#1750
jonkjetiloye merged 16 commits intomainfrom
feat/POC_ProviderFilterOnAuthorizedParties

Conversation

@jonkjetiloye
Copy link
Member

@jonkjetiloye jonkjetiloye commented Nov 17, 2025

Description

Both enduser and resourceowner endpoints:

  • Added new filter parameter: anyOfResourceIds
    • Used for filter response where subject has access to any of the specified resources

resourceowner endpoint:

  • Added new filter parameter: orgCode
    • Used to filter the response to a specific service owner code
    • Admin scope: can filter for any service owner code
    • Otherwise authorized against either
      • urn:altinn:org claim in token
      • lookup of consumer organization id against service owner register

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

Jon Kjetil Øye added 4 commits December 22, 2025 09:20
- implement role filtering of A2 authorizedParties
- prep A3 resource and package filtering
- add bruno request for testing provider filter
@jonkjetiloye jonkjetiloye marked this pull request as ready for review January 5, 2026 08:59
@jonkjetiloye jonkjetiloye changed the title POC attempt at filtering authorized parties based on the requesting serviceowner AuthorizedParties filter on the requesting serviceowner and specific resource access Jan 5, 2026
- Added authorization logic for orgCode param
- renamed AnyResource query param to AnyOfResourceIds
Copy link
Contributor

@Thuen Thuen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fjern ubrukt IServiceProvider ellers ok, bare noen små kommentarer.
Ikke fått testet bruno testene, men antar de er ok,

Jon Kjetil Øye added 4 commits January 9, 2026 18:13
…resources with accesspackages -> ConnectionQuery must be skipped

- Rewrite AuthorizedPartyRepoServiceEf to no longer use SortedDictionary
- Rewrite AuthorizedPartiesServiceEf.ProcessProviderAndResourceFilters logic for the change in AuthorizedPartyRepoServiceEf to no longer use SortedDictionary
@jonkjetiloye jonkjetiloye merged commit 7d1d931 into main Jan 12, 2026
6 of 8 checks passed
@jonkjetiloye jonkjetiloye deleted the feat/POC_ProviderFilterOnAuthorizedParties branch January 12, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants