Liking cljdoc? Tell your friends :D

game.gm.authorization

Canonical caller and manifest-level authorization helpers.

New protocols opt into enforcement with :authorization {:caller :member} on a capability definition. Legacy capabilities without that key retain their current behavior while they are migrated deliberately. Actor identity always comes from MoM's top-level :caller envelope, never from :event/data.

Canonical caller and manifest-level authorization helpers.

New protocols opt into enforcement with
`:authorization {:caller :member}` on a capability definition. Legacy
capabilities without that key retain their current behavior while they are
migrated deliberately. Actor identity always comes from MoM's top-level
`:caller` envelope, never from `:event/data`.
raw docstring

admin?clj

(admin? payload admin-roles)

authorize-capabilityclj

(authorize-capability payload capability)

Returns nil when authorized, otherwise a stable error response.

Enforcement is opt-in. :caller :member requires MoM's canonical membership envelope. :caller :system is reserved for trusted lifecycle/effect callbacks. Capability :roles are enforced only after caller provenance is established.

Returns nil when authorized, otherwise a stable error response.

Enforcement is opt-in. `:caller :member` requires MoM's canonical membership
envelope. `:caller :system` is reserved for trusted lifecycle/effect callbacks.
Capability `:roles` are enforced only after caller provenance is established.
raw docstring

callerclj

(caller payload)

caller-membership-idclj

(caller-membership-id payload)

caller-player-nameclj

(caller-player-name payload)

caller-rolesclj

(caller-roles payload)

claimed-player-nameclj

(claimed-player-name payload)

errorclj

(error status code message)

member-caller?clj

(member-caller? payload)

normalize-roleclj

(normalize-role role)

owner-caller?clj

(owner-caller? payload)

system-caller?clj

(system-caller? payload)

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