2022-07-30 21:55:58 +00:00
|
|
|
version: 1
|
2022-08-02 22:05:49 +00:00
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
blueprints.goauthentik.io/example: "true"
|
|
|
|
name: Example - Login with conditional Captcha
|
2022-07-30 21:55:58 +00:00
|
|
|
entries:
|
|
|
|
- identifiers:
|
|
|
|
slug: default-authentication-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 Authentication Flow
|
|
|
|
title: Welcome to authentik!
|
|
|
|
designation: authentication
|
|
|
|
- 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-flow-captcha
|
2022-07-31 15:11:44 +00:00
|
|
|
id: default-authentication-flow-captcha
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_stages_captcha.captchastage
|
|
|
|
attrs:
|
|
|
|
public_key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
|
|
|
|
private_key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
|
|
|
|
- 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-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-captcha
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 30
|
2022-07-31 15:11:44 +00:00
|
|
|
id: flow-binding-captcha
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_flows.flowstagebinding
|
|
|
|
attrs:
|
|
|
|
evaluate_on_plan: false
|
|
|
|
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
|
|
|
name: default-authentication-flow-conditional-captcha
|
|
|
|
id: default-authentication-flow-conditional-captcha
|
2022-07-30 21:55:58 +00:00
|
|
|
model: authentik_policies_reputation.reputationpolicy
|
|
|
|
attrs:
|
|
|
|
check_ip: true
|
|
|
|
check_username: true
|
|
|
|
threshold: -5
|
|
|
|
- identifiers:
|
2022-07-31 15:11:44 +00:00
|
|
|
policy: !KeyOf default-authentication-flow-conditional-captcha
|
|
|
|
target: !KeyOf flow-binding-captcha
|
2022-07-30 21:55:58 +00:00
|
|
|
order: 0
|
|
|
|
model: authentik_policies.policybinding
|