Integrates tiny-RBAC library to the xiana flow
Integrates tiny-RBAC library to the xiana flow
(init config)
Initialize and validates a role-set
Initialize and validates a role-set
On enter it validates if the resource is restricted, and available at the current state (actual user with a role) If it's not restricted do nothing, if the given user has no rights, responses {:status 403 :body "Forbidden"}. On leave executes restriction function if any.
On enter it validates if the resource is restricted, and available at the current state (actual user with a role) If it's not restricted do nothing, if the given user has no rights, responses {:status 403 :body "Forbidden"}. On leave executes restriction function if any.
(permissions state)
Gathers the necessary parameters from xiana state for permission resolution. Returns a set of keywords for data ownership check. The format of returned keywords: ':resource/restriction'
Gathers the necessary parameters from xiana state for permission resolution. Returns a set of keywords for data ownership check. The format of returned keywords: ':resource/restriction'
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close