Basic workflow
This section outlines a recommended workflow for creating an authorization domain, including ALFA policies, attribute connectors for your PIPs, and associated tests. While this is a suggested approach, you can explore and learn ALFA and the Axiomatics Policy DevOps in any order.
The workflow is as follows:
-
Capture requirements
Before implementing your authorization domain, document your business requirements and authorization use cases.
-
Define attributes and their metadata to support policy evaluation.
-
We recommend a specification and test-driven development (TDD) approach for ALFA and your authorization domain. This involves writing and running a failing test before implementing any functional code (policies or attribute connectors).
-
Write ALFA policies and verify that all tests pass.
-
Create the attribute connectors
Implement attribute connectors that retrieve values from external attribute sources (PIPs).