2026-07-14 10:18:05Getslow6:
Update PROXY_HEADER authentication documentation
Clarify the expected headers for PROXY_HEADER authentication and provide details on permissions and role-based permissions.
configuration.md ..
@@ 119,24 119,35 @@
#### Authentication with `PROXY_HEADER`s
-
With `AUTH_METHOD='PROXY_HEADER'` an Otter Wiki expects the headers
+
With `AUTH_METHOD='PROXY_HEADER'` an Otter Wiki expects forwarded authentication headers to authenticate the user.
+
By default an Otter Wiki expects the headers
- `x-otterwiki-name`
- `x-otterwiki-email`
- `x-otterwiki-permissions`
to be set by the proxy service using forward authentication.
-
-
The headers `x-otterwiki-name` and `x-otterwiki-email` are used for receiving author information and `x-otterwiki-permissions` a comma separated list of permissions `READ`, `WRITE`, `UPLOAD` and `ADMIN`.
+
The headers `x-otterwiki-name` and `x-otterwiki-email` are used for receiving author information and `x-otterwiki-permissions` a comma separated list of permissions.
The header names can be customized via the following variables:
| `AUTH_ROLES_READ` | `'READ'` | Comma separated list of roles that should have the `READ` permission |
+
| `AUTH_ROLES_WRITE` | `'WRITE'` | Comma separated list of roles that should have the `WRITE` permission |
+
| `AUTH_ROLES_UPLOAD` | `'UPLOAD'` | Comma separated list of roles that should have the `UPLOAD` permission |
+
| `AUTH_ROLES_ADMIN` | `'ADMIN'` | Comma separated list of roles that should have the `ADMIN` permission |
+
A simplified proof of concept can be found on github: [otterwiki/docs/auth_examples/header-auth](https://github.com/redimp/otterwiki/tree/main/docs/auth_examples/header-auth).