Skip to content

Commit a4331c6

Browse files
Mykola SerdiukSergK
authored andcommitted
chore: Add additional examples of Keycloak AuthFlow resource (#79)
1 parent 968dc0e commit a4331c6

File tree

1 file changed

+62
-3
lines changed

1 file changed

+62
-3
lines changed

deploy-templates/_crd_examples/keycloakauthflow.yaml

Lines changed: 62 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ spec:
66
realmRef:
77
name: keycloakrealm-sample
88
kind: KeycloakRealm
9-
alias: MyBrowser
10-
description: browser flow
9+
alias: Demo
10+
description: Example of KeycloakAuthFlow
1111
providerId: basic-flow
1212
topLevel: true
1313
builtIn: false
@@ -17,8 +17,67 @@ spec:
1717
requirement: "ALTERNATIVE"
1818
- authenticator: "identity-provider-redirector"
1919
priority: 1
20-
requirement: "REQUIRED"
20+
requirement: "ALTERNATIVE"
2121
authenticatorConfig:
2222
alias: my-alias
2323
config:
2424
"defaultProvider": "my-alias"
25+
---
26+
apiVersion: v1.edp.epam.com/v1
27+
kind: KeycloakAuthFlow
28+
metadata:
29+
name: keycloakauthflow-forms
30+
spec:
31+
realmRef:
32+
name: keycloakrealm-sample
33+
kind: KeycloakRealm
34+
alias: Forms
35+
description: browser auth forms
36+
providerId: basic-flow
37+
topLevel: false
38+
parentName: Demo
39+
childType: basic-flow
40+
builtIn: false
41+
---
42+
apiVersion: v1.edp.epam.com/v1
43+
kind: KeycloakAuthFlow
44+
metadata:
45+
name: keycloakauthflow-x509
46+
spec:
47+
realmRef:
48+
name: keycloakrealm-sample
49+
kind: KeycloakRealm
50+
alias: X509
51+
description: Client certificate, and other auth forms.
52+
providerId: basic-flow
53+
topLevel: false
54+
parentName: Forms
55+
childType: basic-flow
56+
builtIn: false
57+
authenticationExecutions:
58+
- authenticator: "auth-x509-client-username-form"
59+
priority: 0
60+
requirement: "ALTERNATIVE"
61+
---
62+
apiVersion: v1.edp.epam.com/v1
63+
kind: KeycloakAuthFlow
64+
metadata:
65+
name: keycloakauthflow-otp
66+
spec:
67+
realmRef:
68+
name: keycloakrealm-sample
69+
kind: KeycloakRealm
70+
alias: Conditional OTP
71+
description: Flow to determine if the OTP is required for the authentication.
72+
providerId: basic-flow
73+
topLevel: false
74+
parentName: X509
75+
childType: basic-flow
76+
builtIn: false
77+
authenticationExecutions:
78+
- authenticator: "conditional-user-configured"
79+
priority: 0
80+
requirement: "ALTERNATIVE"
81+
- authenticator: "auth-otp-form"
82+
priority: 0
83+
requirement: "ALTERNATIVE"

0 commit comments

Comments
 (0)