Closed altinnadmin closed 12 months ago
org/ssb
@TheTechArch What is the status of this issue?
I am closing this issue, as there has been no movement on it for months. In addition, we now have a policy editor that works on a basic JSON format and converts it to the XACML policy on the backend. Re-open if there are some other considerations that I'm missing.
Description
Currently each app contains a policy.xml file, containing rules for access control in the XACML format.
The XACML-format, while very flexible, has some major drawbacks:
To solve these problems, we should do the following:
Sample
See this page (work in progress) to see examples of the difference between the current format and a potential JSON-format.
Simple app policy
XML XACML
JSON VARIANT 1
JSON Variant 2
Resource Registry: API Admin Altinn Portal
XACML Version
Json Version
Altinn Studio App: Reelle rettighetshavere
See original XACML here. (it is large)
https://altinn.studio/repos/brg/rrh-innrapportering/raw/branch/master/App/config/authorization/policy.xml
XACML
JSON Version 1
Json VErsion 2
Considerations
app:
,role:
, etc) or JSON objects? Strings are shorter, objects can provide better intellisense.Acceptance criteria
Specification tasks
Development tasks
Definition of done
Verify that this issue meets DoD (Only for project members) before closing.