The permission registry: every permission, code role and scope key the
enabled modules declare or derive. Built once at boot as
:wagoe/permission-registry; nothing outside it can be granted.
The permission registry: every permission, code role and scope key the enabled modules declare or derive. Built once at boot as `:wagoe/permission-registry`; nothing outside it can be granted.
(permission? this permission)Whether permission is in the registry.
Whether `permission` is in the registry.
(permissions this){permission {:label :module :source}}. :source is :derived
(<module>/read|write, admin.<entity>/read|write), :declared, or one
a module names, such as the user module's :groups-schema.
{permission {:label :module :source}}. `:source` is `:derived`
(`<module>/read|write`, `admin.<entity>/read|write`), `:declared`, or one
a module names, such as the user module's `:groups-schema`.(roles this)Code roles, {role {:description :permissions #{..} :module}}.
Code roles, {role {:description :permissions #{..} :module}}.
(scope-sources this)Where a scope value may come from the user, {:user/<name> {:label :resolve :module}};
:resolve is a fn from the user to the values.
Where a scope value may come from the user, {:user/<name> {:label :resolve :module}};
`:resolve` is a fn from the user to the values.(scopes this)Scope keys, {key {:label :entity :schema :sources :expand :source :module}}.
Scope keys, {key {:label :entity :schema :sources :expand :source :module}}.
A user's effective rights, read per request by the authorization interceptor. The user module implements it, so the platform needs no dependency on it.
A user's effective rights, read per request by the authorization interceptor. The user module implements it, so the platform needs no dependency on it.
(rights this user)[{:permission kw :scope nil-or-{key value}}] for user, a signed-in
user map; a scope value fixed or a :user/<name> source.
`[{:permission kw :scope nil-or-{key value}}]` for `user`, a signed-in
user map; a scope value fixed or a `:user/<name>` source.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |