Liking cljdoc? Tell your friends :D

wagoe.platform.ports.authorization

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.
raw docstring

IPermissionRegistrycljprotocol

permission?clj

(permission? this permission)

Whether permission is in the registry.

Whether `permission` is in the registry.

permissionsclj

(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`.

rolesclj

(roles this)

Code roles, {role {:description :permissions #{..} :module}}.

Code roles, {role {:description :permissions #{..} :module}}.

scope-sourcesclj

(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.

scopesclj

(scopes this)

Scope keys, {key {:label :entity :schema :sources :expand :source :module}}.

Scope keys, {key {:label :entity :schema :sources :expand :source :module}}.
source

IRightscljprotocol

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.

rightsclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close