In order to restrict access to public APIs to the intended user group, add an RBAC middleware.
- Using model and policy env values, initialize an enforcer/authorizer function. (example)
- Use this enforcer function to initialize an RBAC middleware. Add this middleware.
Complete architecture for access control: