Liking cljdoc? Tell your friends :D

wagoe.user.shell.cli-entry.authorization-upgrade

The JVM half of wagoe upgrade authorization: the steps that need the app's database and routes. The Babashka half edits config.edn and calls

clojure -M -m wagoe.user.shell.cli-entry.authorization-upgrade <app>.system-config <step>

  • check: what the first start of this version will move, who holds which legacy role, the routes no rule covers. Builds the routes without the rights migration or boot migrations, so it moves no rights.
  • prepare: runs the migrations and the rights migration, then prints what each user holds and where :enforce differs from :off.
  • report: those differences again. Exits 2 while any would refuse.
The JVM half of `wagoe upgrade authorization`: the steps that need the
app's database and routes. The Babashka half edits config.edn and calls

  clojure -M -m wagoe.user.shell.cli-entry.authorization-upgrade <app>.system-config <step>

- `check`: what the first start of this version will move, who holds which
  legacy role, the routes no rule covers. Builds the routes without the
  rights migration or boot migrations, so it moves no rights.
- `prepare`: runs the migrations and the rights migration, then prints what
  each user holds and where `:enforce` differs from `:off`.
- `report`: those differences again. Exits 2 while any would refuse.
raw docstring

*exit!*clj

Ends the process with code; rebound in tests.

Ends the process with `code`; rebound in tests.
sourceraw docstring

-mainclj

(-main & [config-ns step])
source

checkclj

(check system)
source

prepareclj

(prepare system)
source

reportclj

(report system)
source

run-stepclj

(run-step ig-config step)

Runs step against the app config ig-config; the exit code.

Runs `step` against the app config `ig-config`; the exit code.
sourceraw docstring

users-with-rightsclj

(users-with-rights registry group-svc user-repo)
(users-with-rights registry group-svc user-repo rights?)

Every active user of user-repo as core.authorization-upgrade reads one, with the rights group-svc gives them now, or none without rights?.

Every active user of `user-repo` as `core.authorization-upgrade` reads one,
with the rights `group-svc` gives them now, or none without `rights?`.
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