Licence validity as an ordered rule chain. Pure.
A rule returns nil to pass, or a DenyReason keyword to stop the chain.
Extending the policy = registering another rule; decide never changes.
Licence validity as an ordered rule chain. Pure. A rule returns nil to pass, or a DenyReason keyword to stop the chain. Extending the policy = registering another rule; `decide` never changes.
(decide request)(decide rules request)First denial in rules, or a valid verdict.
First denial in `rules`, or a valid verdict.
Order is the contract: a malformed licence must not reach signature checking, and an unverified licence must not reach entitlement checking.
Order is the contract: a malformed licence must not reach signature checking, and an unverified licence must not reach entitlement checking.
(check this request)nil to pass, else a DenyReason keyword.
nil to pass, else a DenyReason keyword.
(rule-id this)Keyword identifying this rule.
Keyword identifying this rule.
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 |