Liking cljdoc? Tell your friends :D

wagoe.cli.upgrade-authorization

wagoe upgrade authorization <step>: walk an app from :wagoe/authorization :off to :enforce, one environment at a time.

This side reads and edits resources/conf/<env>/config.edn. What needs the database or the compiled routes runs in the app's JVM, through wagoe.user.shell.cli-entry.authorization-upgrade.

`wagoe upgrade authorization <step>`: walk an app from
`:wagoe/authorization :off` to `:enforce`, one environment at a time.

This side reads and edits resources/conf/<env>/config.edn. What needs the
database or the compiled routes runs in the app's JVM, through
wagoe.user.shell.cli-entry.authorization-upgrade.
raw docstring

*jvm*clj

Runs a JVM step, (fn [ctx step]) → exit code; rebound in tests.

Runs a JVM step, (fn [ctx step]) → exit code; rebound in tests.
sourceraw docstring

allow-entitiesclj

(allow-entities text entities)

text with entities added to :wagoe/admin's :allowlist.

`text` with `entities` added to `:wagoe/admin`'s `:allowlist`.
sourceraw docstring

config-factsclj

(config-facts text)

{:mode :require-role? :default-roles [[provider role]]} of a config.edn. :mode is :off when :wagoe/authorization is absent.

{:mode :require-role? :default-roles [[provider role]]} of a config.edn.
`:mode` is :off when `:wagoe/authorization` is absent.
sourceraw docstring

config-nsclj

(config-ns dir deps)

The app's system config namespace: its :run alias's main namespace with system-config for main, else the one src/<dir>/system_config.clj holds.

The app's system config namespace: its `:run` alias's main namespace with
`system-config` for `main`, else the one src/<dir>/system_config.clj holds.
sourceraw docstring

drop-require-roleclj

(drop-require-role text)

text without :require-role in :wagoe/admin, which nothing reads.

`text` without `:require-role` in `:wagoe/admin`, which nothing reads.
sourceraw docstring

format-log-refusalsclj

(format-log-refusals entries)

entries per permission and route, with the users refused.

`entries` per permission and route, with the users refused.
sourceraw docstring

jvm-mainclj

source

log-refusalsclj

(log-refusals text)

The entries of text's would-be refusal lines, {:user-id :route :method :permission} as strings and keywords.

The entries of `text`'s would-be refusal lines, {:user-id :route :method
:permission} as strings and keywords.
sourceraw docstring

runclj

(run dir args)

Runs the step args name in project dir; the exit code.

Runs the step `args` name in project `dir`; the exit code.
sourceraw docstring

set-modeclj

(set-mode text mode)

text with :wagoe/authorization :mode set to mode under :active.

`text` with `:wagoe/authorization :mode` set to `mode` under `:active`.
sourceraw docstring

unlisted-admin-entitiesclj

(unlisted-admin-entities text dir)

The entities :wagoe/admin :entities configures that its :allowlist lacks, sorted. The admin declares admin.<entity> permissions for the allowlist only, so under :enforce only a platform admin reaches these. dir holds the config.edn, for its #includes. None when the allowlist is not a literal set: what it holds cannot be read, nor allow-entities extend it.

The entities `:wagoe/admin :entities` configures that its `:allowlist`
lacks, sorted. The admin declares `admin.<entity>` permissions for the
allowlist only, so under :enforce only a platform admin reaches these.
`dir` holds the config.edn, for its `#include`s. None when the allowlist is
not a literal set: what it holds cannot be read, nor `allow-entities` extend it.
sourceraw docstring

usageclj

source

version-noteclj

(version-note deps)

Why the app's wagoe-user may be too old for these steps, or nil.

Why the app's wagoe-user may be too old for these steps, or nil.
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