1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Document policy settings for changing the policy wasm file

This commit is contained in:
Marcel
2024-08-22 13:27:43 +02:00
committed by Quentin Gliech
parent 30fdb9992b
commit 7fe70aac80

View File

@ -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.