2022-07-30 21:55:58 +00:00
|
|
|
version: 1
|
2022-08-02 22:05:49 +00:00
|
|
|
metadata:
|
|
|
|
labels:
|
2022-08-07 17:27:03 +00:00
|
|
|
blueprints.goauthentik.io/instantiate: "false"
|
2022-08-02 22:05:49 +00:00
|
|
|
name: Example - Two-factor Login
|
2022-07-30 21:55:58 +00:00
|
|
|
entries:
|
|
|
|
- identifiers:
|
|
|
|
slug: default-authentication-flow
|
|
|
|
model: authentik_flows.flow
|
2022-07-31 15:11:44 +00:00
|
|
|
id: flow
|
2022-07-30 21:55:58 +00:00
|
|
|
attrs:
|
|
|
|
name: Default Authentication Flow
|
|
|
|
title: Welcome to authentik!
|
|
|
|
designation: authentication
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
name: test-not-app-password
|
|
|
|
id: test-not-app-password
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_policies_expression.expressionpolicy
|
|
|
|
attrs:
|
2022-07-31 15:11:44 +00:00
|
|
|
expression: |
|
|
|
|
return context["auth_method"] != "app_password"
|
2022-07-30 21:55:58 +00:00
|
|
|
- identifiers:
|
|
|
|
name: default-authentication-login
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-authentication-login
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_stages_user_login.userloginstage
|
|
|
|
attrs:
|
|
|
|
session_duration: seconds=0
|
|
|
|
- identifiers:
|
|
|
|
name: default-authentication-identification
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-authentication-identification
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_stages_identification.identificationstage
|
|
|
|
attrs:
|
|
|
|
user_fields:
|
|
|
|
- email
|
|
|
|
- username
|
|
|
|
template: stages/identification/login.html
|
|
|
|
- identifiers:
|
|
|
|
name: default-authentication-flow-mfa
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-authentication-flow-mfa
|
2022-08-05 22:52:12 +00:00
|
|
|
model: authentik_stages_authenticator_validate.authenticatorvalidatestage
|
2022-07-30 21:55:58 +00:00
|
|
|
- identifiers:
|
|
|
|
name: default-authentication-password
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-authentication-password
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_stages_password.passwordstage
|
|
|
|
attrs:
|
|
|
|
backends:
|
|
|
|
- authentik.core.auth.InbuiltBackend
|
|
|
|
- authentik.core.auth.TokenBackend
|
|
|
|
- authentik.sources.ldap.auth.LDAPBackend
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
target: !KeyOf flow
|
|
|
|
stage: !KeyOf default-authentication-identification
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 10
|
|
|
|
model: authentik_flows.flowstagebinding
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
target: !KeyOf flow
|
|
|
|
stage: !KeyOf default-authentication-password
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 20
|
|
|
|
model: authentik_flows.flowstagebinding
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
target: !KeyOf flow
|
|
|
|
stage: !KeyOf default-authentication-flow-mfa
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 30
|
|
|
|
model: authentik_flows.flowstagebinding
|
2022-07-31 15:11:44 +00:00
|
|
|
id: flow-binding-mfa
|
2022-07-30 21:55:58 +00:00
|
|
|
attrs:
|
|
|
|
re_evaluate_policies: true
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
target: !KeyOf flow
|
|
|
|
stage: !KeyOf default-authentication-login
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 100
|
|
|
|
model: authentik_flows.flowstagebinding
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
policy: !KeyOf test-not-app-password
|
|
|
|
target: !KeyOf flow-binding-mfa
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 0
|
|
|
|
model: authentik_policies.policybinding
|