stages/identification: auto-redirect to source when no user fields are selected (#5583)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2023-05-11 16:52:30 +02:00
committed by GitHub
parent 7265a56f05
commit 61434c807d
8 changed files with 81 additions and 30 deletions

View File

@ -4,24 +4,24 @@ title: Identification stage
This stage provides a ready-to-go form for users to identify themselves.
## Options
## User Fields
### User Fields
Select which fields the user can use to identify themselves. Multiple fields can be selected. If no fields are selected, only sources will be shown.
Select which fields the user can use to identify themselves. Multiple fields can be specified and separated with a comma.
Valid choices:
- Username
- Email
- UPN
- email
- username
UPN will attempt to identify the user based on the `upn` attribute, which can be imported with an [LDAP Source](/integrations/sources/ldap/index)
### Template
:::info
Starting with authentik 2023.5, when no user fields are selected and only one source is selected, authentik will automatically redirect the user to that source.
:::
This specifies which template is rendered. Currently there are two templates:
## Password stage
The `Login` template shows configured Sources below the login form, as well as linking to the defined Enrollment and Recovery flows.
To prompt users for their password on the same step as identifying themselves, a password stage can be selected here. If a password stage is selected in the Identification stage, the password stage should not be bound to the flow.
The `Recovery` template shows only the form.
### Enrollment/Recovery Flow
## Enrollment/Recovery Flow
These fields specify if and which flows are linked on the form. The enrollment flow is linked as `Need an account? Sign up.`, and the recovery flow is linked as `Forgot username or password?`.