Search code examples
authzforce

XACML Authzforce PDP Custom Policies


Authzforce PDP does it support custom policies apart from xacml policies?. We are able to send xacml request tp PDP but as the policy creation is in xacml is complex we decided to create our own policies using json format, does Authforce able to support policies written in nonxacaml format? Need some assistance here.


Solution

  • You can write policies in ALFA, then use the ALFA Compiler (1.2 or later), i.e. alfac.jar to convert to XACML before sending the policies to AuthzForce. More info in the ALFA 1.2 User Guide (provided with the Compiler), in section XACML generation using the standalone ALFA compiler.

    As an alternative, the AuthzForce project xacml-json-model provides:

    $ java -jar Saxon-HE-9.8.0-15.jar -xsl:xacml-policy-json-to-xml.xsl -it inJsonFile=MyPolicy.json