-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
48 lines (41 loc) · 1.19 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
terraform {
required_providers {
#
# Docs: https://registry.terraform.io/providers/goauthentik/authentik/latest/docs
#
authentik = {
source = "goauthentik/authentik"
version = "2021.8.4"
}
#
# Docs: https://registry.terraform.io/providers/hashicorp/random/latest/docs
#
random = {
source = "hashicorp/random"
version = "3.1.0"
}
}
}
resource "authentik_stage_identification" "UserIdentification" {
name = "person-ident"
user_fields = ["username", "email"]
}
resource "authentik_stage_authenticator_webauthn" "Passwordless" {
name = "basewebauthn-passwordless-core"
}
resource "authentik_flow" "Flow" {
name = "webauthn-passwordless-flow"
title = "Base WebAuthn Passwordless flow"
slug = "passwordless-flow"
designation = "authorization"
}
resource "authentik_flow_stage_binding" "UserIdentification" {
target = authentik_flow.Flow.uuid
stage = authentik_stage_identification.UserIdentification.id
order = 0
}
resource "authentik_flow_stage_binding" "WebAuthnBinding" {
target = authentik_flow.Flow.uuid
stage = authentik_stage_authenticator_webauthn.Passwordless.id
order = 10
}