Altinn / altinn-access-management

PoC for new auth admin UI
MIT License
6 stars 3 forks source link

DelegationCheck should fail if the request contains multiple resources of the same type. #810

Open nairaz opened 2 months ago

nairaz commented 2 months ago

Description of the bug

Gets a response based on the first one in the list instead of failing with an error message indicating that the request is invalid

Steps To Reproduce

Kjør følgende request med gitt partyid og testmiljø

{{platformenvurl}}/accessmanagement/api/v1/internal/partyid/rights/delegation/delegationcheck { "resource": [ { "id": "urn:altinn:resource", "value": "Fraværsportalen" }, { "id": "urn:altinn:resource", "value": "kravogbetaling" } ] }

Additional Information

No response