stages/identification: add field for passwordless flow

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-12-23 18:27:00 +01:00
parent b6b0edb7ad
commit 5c5634830f
13 changed files with 394 additions and 43 deletions

View File

@ -32,12 +32,7 @@ As first stage, add an *Authentication validation* stage, with the WebAuthn devi
After this stage you can bind any additional verification stages.
As final stage, bind a *User login* stage.
This flow will return an error for users without a WebAuthn device. To circumvent this, you can add an identification and password stage
after the initial validation stage, and use a policy to skip them if the first stage already set a user. You can use a policy like this:
```python
return bool(request.user)
```
Users can either access this flow directly via it's URL, or you can modify any Identification stage to add a direct link to this flow.
#### Logging