Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Document policy settings for changing the policy wasm file
Browse files Browse the repository at this point in the history
  • Loading branch information
MTRNord authored and sandhose committed Sep 3, 2024
1 parent 30fdb99 commit 7fe70aa
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,23 @@ Policy settings

```yaml
policy:
# Path to the WASM module
# Default for docker feature: `/usr/local/share/mas-cli/policy.wasm`
# Default for dist feature: `./share/policy.wasm`
# Default otherwise: `./policies/policy.wasm`
wasm_module: ./policies/policy.wasm
# Entrypoint to use when evaluating client registrations
client_registration_entrypoint: client_registration/violation
# Entrypoint to use when evaluating user registrations
register_entrypoint: register/violation
# Entrypoint to use when evaluating authorization grants
authorization_grant_entrypoint: authorization_grant/violation
# Entrypoint to use when changing password
password_entrypoint: password/violation
# Entrypoint to use when adding an email address
email_entrypoint: email/violation

# This data is being passed to the policy
data:
# Users which are allowed to ask for admin access. If possible, use the
# can_request_admin flag on users instead.
Expand Down

0 comments on commit 7fe70aa

Please sign in to comment.