This package is a thin library that implements the ReBAC Admin UI OpenAPI spec. With this library comes a set of abstractions that product services, like JAAS or Identity Platform Admin UI, need to implement and plug in. The library itself does not directly communicate with the underlying authorization provider (i.e., OpenFGA).
There is an example application of the library, under the _example directory, which implements an in-memory server.
To setup your development environment run these commands:
git clone github.com/canonical/rebac-admin-ui-handlers
# or for SSH-authenticated users:
# git clone git@github.com:canonical/rebac-admin-ui-handlers
cd rebac-admin-ui-handlers
make mocksDevelopment-related actions are done via various Makefile targets. You can always run make help to find out about the available commands.
Below are some useful Makefile targets you can use.
make test
make test-coverageTo pull the latest stable OpenAPI spec and generate the request/response types accordingly, run:
make pull-specmake clean