-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for apps as serviceresource (#658)
In order to support app instances in the Dialogporten, we need to be able to refer to apps as service resources ## Description This adds support for urn:altinn:app in dialog validator and Altinn auth helpers, and changes the Resource Registry client to use the "resourcelist" endpoint, which includes Altinn 3 apps (unfortunately this also includes Altinn 2 services, which baloons the response size considerably, but this is filtered before storing to cache). The Fusion cache settings has been changed to reflect this (ie. increasing factory timeouts). Yet to be fixed: - [x] ~~Handling of "ttd" services (the Digdir test organization). These contain an empty string as "organization" in the RR, where there usually is a organization number. Special code will be required to handle TTD service authorization and dialog.org population.~~ Moved to #663 - [x] ~~Handling of app instance delegations. Since app instance ids are a bit weird (has the form `{partyId}/{instanceId}`) we cannot just map the dialogId to `urn:altinn:instance-id` (like we do with resource id) as this will cause an exception in the PDP API. Preferably the PDP context handler should be able to deal with this, and map the missing partyId into the instance-id (since it needs to get the partyId for organizationnumbers/SSNs anyway)~~ Moved to #664 - [x] ~~Handling of resource constraints for app in the authorization requests for search. Currently we assume name of the resource to be unique, but an app-name may be reused between service owners.~~ Edit: we include the reserved `app_{org}_` prefix, avoiding this potential ambiguity. ## Related Issue(s) - #651 ## Verification - [x] **Your** code builds clean without any errors or warnings - [x] Manual testing done (required) - [x] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable)
- Loading branch information
Showing
6 changed files
with
121 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters