An application needs to grant access to users to a document during a specific period of time.
We can model it with OpenFGA using conditional relationship tuples.
The model, tuples and unit tests are detailed in store.fga.yaml.
-
Make sure you have the FGA CLI
-
In the
temporal-access
directory, runfga model test --tests store.fga.yaml