This repo contains the client SDK for UserClouds AuthZ & IDP services as well as a sample app to demonstrate use of the AuthZ service.
To run the sample from the root of the repo:
cd samples/basic
cp .env.example .env
- Open
.env
in a text editor of your choice and fill in the Tenant URL, Client ID, and Client Secret from the UserClouds console. You can find this information in thePlex
settings page (you may need to expand thePlex Apps
section for the Client ID & Secret) go run *.go
-> this runs a command line app which talks to your UserClouds tenant, creates test users & AuthZ objects/ACLs, and runs through some test scenarios. At the end, it will display a sample file/directory tree with permissions on each node of the tree.