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 - Recovery with email verification
|
2022-07-30 21:55:58 +00:00
|
|
|
entries:
|
|
|
|
- identifiers:
|
|
|
|
slug: default-recovery-flow
|
2022-07-31 15:11:44 +00:00
|
|
|
id: flow
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_flows.flow
|
|
|
|
attrs:
|
|
|
|
name: Default recovery flow
|
|
|
|
title: Reset your password
|
|
|
|
designation: recovery
|
2022-12-01 08:41:26 +00:00
|
|
|
authentication: require_unauthenticated
|
2022-07-30 21:55:58 +00:00
|
|
|
- identifiers:
|
|
|
|
field_key: password
|
|
|
|
label: Password
|
2022-07-31 15:11:44 +00:00
|
|
|
id: prompt-field-password
|
|
|
|
model: authentik_stages_prompt.prompt
|
|
|
|
attrs:
|
2022-07-30 21:55:58 +00:00
|
|
|
type: password
|
|
|
|
required: true
|
|
|
|
placeholder: Password
|
|
|
|
order: 0
|
|
|
|
placeholder_expression: false
|
|
|
|
- identifiers:
|
|
|
|
field_key: password_repeat
|
|
|
|
label: Password (repeat)
|
2022-07-31 15:11:44 +00:00
|
|
|
id: prompt-field-password-repeat
|
|
|
|
model: authentik_stages_prompt.prompt
|
|
|
|
attrs:
|
2022-07-30 21:55:58 +00:00
|
|
|
type: password
|
|
|
|
required: true
|
|
|
|
placeholder: Password (repeat)
|
|
|
|
order: 1
|
|
|
|
placeholder_expression: false
|
|
|
|
- identifiers:
|
|
|
|
name: default-recovery-skip-if-restored
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-recovery-skip-if-restored
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_policies_expression.expressionpolicy
|
|
|
|
attrs:
|
2022-07-31 15:11:44 +00:00
|
|
|
expression: |
|
|
|
|
return request.context.get('is_restored', False)
|
2022-07-30 21:55:58 +00:00
|
|
|
- identifiers:
|
|
|
|
name: default-recovery-email
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-recovery-email
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_stages_email.emailstage
|
|
|
|
attrs:
|
|
|
|
use_global_settings: true
|
|
|
|
host: localhost
|
|
|
|
port: 25
|
|
|
|
username: ""
|
|
|
|
use_tls: false
|
|
|
|
use_ssl: false
|
|
|
|
timeout: 10
|
|
|
|
from_address: system@authentik.local
|
|
|
|
token_expiry: 30
|
|
|
|
subject: authentik
|
|
|
|
template: email/password_reset.html
|
|
|
|
activate_user_on_success: true
|
|
|
|
- identifiers:
|
|
|
|
name: default-recovery-user-write
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-recovery-user-write
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_stages_user_write.userwritestage
|
|
|
|
- identifiers:
|
|
|
|
name: default-recovery-identification
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-recovery-identification
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_stages_identification.identificationstage
|
|
|
|
attrs:
|
|
|
|
user_fields:
|
|
|
|
- email
|
|
|
|
- username
|
|
|
|
- identifiers:
|
|
|
|
name: default-recovery-user-login
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-recovery-user-login
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_stages_user_login.userloginstage
|
|
|
|
attrs:
|
|
|
|
session_duration: seconds=0
|
|
|
|
- identifiers:
|
|
|
|
name: Change your password
|
2022-08-01 21:05:58 +00:00
|
|
|
id: stages-prompt-password
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_stages_prompt.promptstage
|
|
|
|
attrs:
|
|
|
|
fields:
|
2022-07-31 15:11:44 +00:00
|
|
|
- !KeyOf prompt-field-password
|
|
|
|
- !KeyOf prompt-field-password-repeat
|
2022-07-30 21:55:58 +00:00
|
|
|
validation_policies: []
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
target: !KeyOf flow
|
|
|
|
stage: !KeyOf default-recovery-identification
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 10
|
|
|
|
model: authentik_flows.flowstagebinding
|
2022-07-31 15:11:44 +00:00
|
|
|
id: flow-binding-identification
|
2022-07-30 21:55:58 +00:00
|
|
|
attrs:
|
|
|
|
evaluate_on_plan: true
|
|
|
|
re_evaluate_policies: true
|
|
|
|
policy_engine_mode: any
|
|
|
|
invalid_response_action: retry
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
target: !KeyOf flow
|
|
|
|
stage: !KeyOf default-recovery-email
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 20
|
|
|
|
model: authentik_flows.flowstagebinding
|
2022-07-31 15:11:44 +00:00
|
|
|
id: flow-binding-email
|
2022-07-30 21:55:58 +00:00
|
|
|
attrs:
|
|
|
|
evaluate_on_plan: true
|
|
|
|
re_evaluate_policies: true
|
|
|
|
policy_engine_mode: any
|
|
|
|
invalid_response_action: retry
|
|
|
|
- identifiers:
|
|
|
|
pk: 1219d06e-2c06-4c5b-a162-78e3959c6cf0
|
2022-07-31 15:11:44 +00:00
|
|
|
target: !KeyOf flow
|
|
|
|
stage: !KeyOf stages-prompt-password
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 30
|
|
|
|
model: authentik_flows.flowstagebinding
|
|
|
|
attrs:
|
|
|
|
evaluate_on_plan: true
|
|
|
|
re_evaluate_policies: false
|
|
|
|
policy_engine_mode: any
|
|
|
|
invalid_response_action: retry
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
target: !KeyOf flow
|
|
|
|
stage: !KeyOf default-recovery-user-write
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 40
|
|
|
|
model: authentik_flows.flowstagebinding
|
|
|
|
attrs:
|
|
|
|
evaluate_on_plan: true
|
|
|
|
re_evaluate_policies: false
|
|
|
|
policy_engine_mode: any
|
|
|
|
invalid_response_action: retry
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
target: !KeyOf flow
|
|
|
|
stage: !KeyOf default-recovery-user-login
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 100
|
|
|
|
model: authentik_flows.flowstagebinding
|
|
|
|
attrs:
|
|
|
|
evaluate_on_plan: true
|
|
|
|
re_evaluate_policies: false
|
|
|
|
policy_engine_mode: any
|
|
|
|
invalid_response_action: retry
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
policy: !KeyOf default-recovery-skip-if-restored
|
|
|
|
target: !KeyOf flow-binding-identification
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 0
|
|
|
|
model: authentik_policies.policybinding
|
|
|
|
attrs:
|
|
|
|
negate: false
|
|
|
|
enabled: true
|
|
|
|
timeout: 30
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
policy: !KeyOf default-recovery-skip-if-restored
|
|
|
|
target: !KeyOf flow-binding-email
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 0
|
|
|
|
model: authentik_policies.policybinding
|
|
|
|
attrs:
|
|
|
|
negate: false
|
|
|
|
enabled: true
|
|
|
|
timeout: 30
|