stages/authenticator_sms: make sms stage payload customisable (#3780)

* make sms stage payload customisable

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* update phrasing for webhook mapping

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens L
2022-10-14 12:53:01 +03:00
committed by GitHub
parent c4cc04918b
commit 217e145d23
9 changed files with 125 additions and 18 deletions

View File

@ -36,6 +36,16 @@ For the generic provider, a POST request will be sent to the URL you have specif
Authentication can either be done as HTTP Basic, or via a Bearer Token. Any response with status 400 or above is counted as failed, and will prevent the user from proceeding.
Starting with authentik 2022.10, a custom webhook mapping can be specified to freely customise the payload of the request. For example:
```python
return {
"from": stage.from_number,
"to": device.phone_number,
"body": f"foo bar baz {token}".
}
```
## Verify only
:::info