Altinn / altinn-access-management-frontend

Frontend for access management
MIT License
3 stars 1 forks source link

Clear Access Cache for recipient after new single right access delegation(s) #826

Closed jonkjetiloye closed 5 months ago

jonkjetiloye commented 6 months ago

Description

Access Management backend has a new internal API endpoint for invalidating access cache after a new delegation has been performed.

Endpoint URL: PUT /accessmanagement/api/v1/internal/{{party}}/accesscache/clear

Body examples:

{
  "type": "urn:altinn:person:uuid",
  "value": "00000000-0000-0000-0000-000000000000"
}
{
  "type": "urn:altinn:organization:uuid",
  "value": "00000000-0000-0000-0000-000000000000"
}
{
  "type": "urn:altinn:person:uuid",
  "value": "00000000-0000-0000-0000-000000000000"
}

Access management frontend must be updated so that after a all resource delegations to a recipient has completed the access cache clear API is triggered, which hopefully should trigger the necessary cache updates, so that the delegator is able to immediately see the new changes when navigating back to Altinn 2 profile page.

Additional Information

No response

Tasks

Acceptance Criterias

As a main administrator/tilgangsstyrer for a party or myself I should be authorized to clear access cache for a given delegation recipient identified by their uuid once cleared the recipents reportees/authorized-parties and rights for the delegating party should be updated with the latest changes