/
zz_realm_types.go
executable file
·1353 lines (975 loc) · 76.5 KB
/
zz_realm_types.go
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AuthInitParameters struct {
// The SMTP server username.
Username *string `json:"username,omitempty" tf:"username,omitempty"`
}
type AuthObservation struct {
// The SMTP server username.
Username *string `json:"username,omitempty" tf:"username,omitempty"`
}
type AuthParameters struct {
// The SMTP server password.
// +kubebuilder:validation:Required
PasswordSecretRef v1.SecretKeySelector `json:"passwordSecretRef" tf:"-"`
// The SMTP server username.
// +kubebuilder:validation:Optional
Username *string `json:"username" tf:"username,omitempty"`
}
type BruteForceDetectionInitParameters struct {
// When will failure count be reset?
FailureResetTimeSeconds *float64 `json:"failureResetTimeSeconds,omitempty" tf:"failure_reset_time_seconds,omitempty"`
MaxFailureWaitSeconds *float64 `json:"maxFailureWaitSeconds,omitempty" tf:"max_failure_wait_seconds,omitempty"`
// How many failures before wait is triggered.
MaxLoginFailures *float64 `json:"maxLoginFailures,omitempty" tf:"max_login_failures,omitempty"`
// How long to wait after a quick login failure.
MinimumQuickLoginWaitSeconds *float64 `json:"minimumQuickLoginWaitSeconds,omitempty" tf:"minimum_quick_login_wait_seconds,omitempty"`
// When true, this will lock the user permanently when the user exceeds the maximum login failures.
PermanentLockout *bool `json:"permanentLockout,omitempty" tf:"permanent_lockout,omitempty"`
// Configures the amount of time, in milliseconds, for consecutive failures to lock a user out.
QuickLoginCheckMilliSeconds *float64 `json:"quickLoginCheckMilliSeconds,omitempty" tf:"quick_login_check_milli_seconds,omitempty"`
// This represents the amount of time a user should be locked out when the login failure threshold has been met.
WaitIncrementSeconds *float64 `json:"waitIncrementSeconds,omitempty" tf:"wait_increment_seconds,omitempty"`
}
type BruteForceDetectionObservation struct {
// When will failure count be reset?
FailureResetTimeSeconds *float64 `json:"failureResetTimeSeconds,omitempty" tf:"failure_reset_time_seconds,omitempty"`
MaxFailureWaitSeconds *float64 `json:"maxFailureWaitSeconds,omitempty" tf:"max_failure_wait_seconds,omitempty"`
// How many failures before wait is triggered.
MaxLoginFailures *float64 `json:"maxLoginFailures,omitempty" tf:"max_login_failures,omitempty"`
// How long to wait after a quick login failure.
MinimumQuickLoginWaitSeconds *float64 `json:"minimumQuickLoginWaitSeconds,omitempty" tf:"minimum_quick_login_wait_seconds,omitempty"`
// When true, this will lock the user permanently when the user exceeds the maximum login failures.
PermanentLockout *bool `json:"permanentLockout,omitempty" tf:"permanent_lockout,omitempty"`
// Configures the amount of time, in milliseconds, for consecutive failures to lock a user out.
QuickLoginCheckMilliSeconds *float64 `json:"quickLoginCheckMilliSeconds,omitempty" tf:"quick_login_check_milli_seconds,omitempty"`
// This represents the amount of time a user should be locked out when the login failure threshold has been met.
WaitIncrementSeconds *float64 `json:"waitIncrementSeconds,omitempty" tf:"wait_increment_seconds,omitempty"`
}
type BruteForceDetectionParameters struct {
// When will failure count be reset?
// +kubebuilder:validation:Optional
FailureResetTimeSeconds *float64 `json:"failureResetTimeSeconds,omitempty" tf:"failure_reset_time_seconds,omitempty"`
// +kubebuilder:validation:Optional
MaxFailureWaitSeconds *float64 `json:"maxFailureWaitSeconds,omitempty" tf:"max_failure_wait_seconds,omitempty"`
// How many failures before wait is triggered.
// +kubebuilder:validation:Optional
MaxLoginFailures *float64 `json:"maxLoginFailures,omitempty" tf:"max_login_failures,omitempty"`
// How long to wait after a quick login failure.
// +kubebuilder:validation:Optional
MinimumQuickLoginWaitSeconds *float64 `json:"minimumQuickLoginWaitSeconds,omitempty" tf:"minimum_quick_login_wait_seconds,omitempty"`
// When true, this will lock the user permanently when the user exceeds the maximum login failures.
// +kubebuilder:validation:Optional
PermanentLockout *bool `json:"permanentLockout,omitempty" tf:"permanent_lockout,omitempty"`
// Configures the amount of time, in milliseconds, for consecutive failures to lock a user out.
// +kubebuilder:validation:Optional
QuickLoginCheckMilliSeconds *float64 `json:"quickLoginCheckMilliSeconds,omitempty" tf:"quick_login_check_milli_seconds,omitempty"`
// This represents the amount of time a user should be locked out when the login failure threshold has been met.
// +kubebuilder:validation:Optional
WaitIncrementSeconds *float64 `json:"waitIncrementSeconds,omitempty" tf:"wait_increment_seconds,omitempty"`
}
type HeadersInitParameters struct {
// Sets the Content Security Policy, which can be used for prevent pages from being included by non-origin iframes. More information can be found in the W3C-CSP Abstract.
ContentSecurityPolicy *string `json:"contentSecurityPolicy,omitempty" tf:"content_security_policy,omitempty"`
// Used for testing Content Security Policies.
ContentSecurityPolicyReportOnly *string `json:"contentSecurityPolicyReportOnly,omitempty" tf:"content_security_policy_report_only,omitempty"`
// The Referrer-Policy HTTP header controls how much referrer information (sent with the Referer header) should be included with requests.
ReferrerPolicy *string `json:"referrerPolicy,omitempty" tf:"referrer_policy,omitempty"`
// The Script-Transport-Security HTTP header tells browsers to always use HTTPS.
StrictTransportSecurity *string `json:"strictTransportSecurity,omitempty" tf:"strict_transport_security,omitempty"`
// Sets the X-Content-Type-Options, which can be used for prevent MIME-sniffing a response away from the declared content-type
XContentTypeOptions *string `json:"xContentTypeOptions,omitempty" tf:"x_content_type_options,omitempty"`
// Sets the x-frame-option, which can be used to prevent pages from being included by non-origin iframes. More information can be found in the RFC7034
XFrameOptions *string `json:"xFrameOptions,omitempty" tf:"x_frame_options,omitempty"`
// Prevent pages from appearing in search engines.
XRobotsTag *string `json:"xRobotsTag,omitempty" tf:"x_robots_tag,omitempty"`
// This header configures the Cross-site scripting (XSS) filter in your browser.
XXSSProtection *string `json:"xXssProtection,omitempty" tf:"x_xss_protection,omitempty"`
}
type HeadersObservation struct {
// Sets the Content Security Policy, which can be used for prevent pages from being included by non-origin iframes. More information can be found in the W3C-CSP Abstract.
ContentSecurityPolicy *string `json:"contentSecurityPolicy,omitempty" tf:"content_security_policy,omitempty"`
// Used for testing Content Security Policies.
ContentSecurityPolicyReportOnly *string `json:"contentSecurityPolicyReportOnly,omitempty" tf:"content_security_policy_report_only,omitempty"`
// The Referrer-Policy HTTP header controls how much referrer information (sent with the Referer header) should be included with requests.
ReferrerPolicy *string `json:"referrerPolicy,omitempty" tf:"referrer_policy,omitempty"`
// The Script-Transport-Security HTTP header tells browsers to always use HTTPS.
StrictTransportSecurity *string `json:"strictTransportSecurity,omitempty" tf:"strict_transport_security,omitempty"`
// Sets the X-Content-Type-Options, which can be used for prevent MIME-sniffing a response away from the declared content-type
XContentTypeOptions *string `json:"xContentTypeOptions,omitempty" tf:"x_content_type_options,omitempty"`
// Sets the x-frame-option, which can be used to prevent pages from being included by non-origin iframes. More information can be found in the RFC7034
XFrameOptions *string `json:"xFrameOptions,omitempty" tf:"x_frame_options,omitempty"`
// Prevent pages from appearing in search engines.
XRobotsTag *string `json:"xRobotsTag,omitempty" tf:"x_robots_tag,omitempty"`
// This header configures the Cross-site scripting (XSS) filter in your browser.
XXSSProtection *string `json:"xXssProtection,omitempty" tf:"x_xss_protection,omitempty"`
}
type HeadersParameters struct {
// Sets the Content Security Policy, which can be used for prevent pages from being included by non-origin iframes. More information can be found in the W3C-CSP Abstract.
// +kubebuilder:validation:Optional
ContentSecurityPolicy *string `json:"contentSecurityPolicy,omitempty" tf:"content_security_policy,omitempty"`
// Used for testing Content Security Policies.
// +kubebuilder:validation:Optional
ContentSecurityPolicyReportOnly *string `json:"contentSecurityPolicyReportOnly,omitempty" tf:"content_security_policy_report_only,omitempty"`
// The Referrer-Policy HTTP header controls how much referrer information (sent with the Referer header) should be included with requests.
// +kubebuilder:validation:Optional
ReferrerPolicy *string `json:"referrerPolicy,omitempty" tf:"referrer_policy,omitempty"`
// The Script-Transport-Security HTTP header tells browsers to always use HTTPS.
// +kubebuilder:validation:Optional
StrictTransportSecurity *string `json:"strictTransportSecurity,omitempty" tf:"strict_transport_security,omitempty"`
// Sets the X-Content-Type-Options, which can be used for prevent MIME-sniffing a response away from the declared content-type
// +kubebuilder:validation:Optional
XContentTypeOptions *string `json:"xContentTypeOptions,omitempty" tf:"x_content_type_options,omitempty"`
// Sets the x-frame-option, which can be used to prevent pages from being included by non-origin iframes. More information can be found in the RFC7034
// +kubebuilder:validation:Optional
XFrameOptions *string `json:"xFrameOptions,omitempty" tf:"x_frame_options,omitempty"`
// Prevent pages from appearing in search engines.
// +kubebuilder:validation:Optional
XRobotsTag *string `json:"xRobotsTag,omitempty" tf:"x_robots_tag,omitempty"`
// This header configures the Cross-site scripting (XSS) filter in your browser.
// +kubebuilder:validation:Optional
XXSSProtection *string `json:"xXssProtection,omitempty" tf:"x_xss_protection,omitempty"`
}
type InternationalizationInitParameters struct {
// The locale to use by default. This locale code must be present within the supported_locales list.
DefaultLocale *string `json:"defaultLocale,omitempty" tf:"default_locale,omitempty"`
// A list of ISO 639-1 locale codes that the realm should support.
// +listType=set
SupportedLocales []*string `json:"supportedLocales,omitempty" tf:"supported_locales,omitempty"`
}
type InternationalizationObservation struct {
// The locale to use by default. This locale code must be present within the supported_locales list.
DefaultLocale *string `json:"defaultLocale,omitempty" tf:"default_locale,omitempty"`
// A list of ISO 639-1 locale codes that the realm should support.
// +listType=set
SupportedLocales []*string `json:"supportedLocales,omitempty" tf:"supported_locales,omitempty"`
}
type InternationalizationParameters struct {
// The locale to use by default. This locale code must be present within the supported_locales list.
// +kubebuilder:validation:Optional
DefaultLocale *string `json:"defaultLocale" tf:"default_locale,omitempty"`
// A list of ISO 639-1 locale codes that the realm should support.
// +kubebuilder:validation:Optional
// +listType=set
SupportedLocales []*string `json:"supportedLocales" tf:"supported_locales,omitempty"`
}
type OtpPolicyInitParameters struct {
// What hashing algorithm should be used to generate the OTP, Valid options are HmacSHA1,HmacSHA256 and HmacSHA512. Defaults to HmacSHA1.
// What hashing algorithm should be used to generate the OTP.
Algorithm *string `json:"algorithm,omitempty" tf:"algorithm,omitempty"`
// How many digits the OTP have. Defaults to 6.
Digits *float64 `json:"digits,omitempty" tf:"digits,omitempty"`
// What should the initial counter value be. Defaults to 2.
InitialCounter *float64 `json:"initialCounter,omitempty" tf:"initial_counter,omitempty"`
// How far ahead should the server look just in case the token generator and server are out of time sync or counter sync. Defaults to 1.
LookAheadWindow *float64 `json:"lookAheadWindow,omitempty" tf:"look_ahead_window,omitempty"`
// How many seconds should an OTP token be valid. Defaults to 30.
Period *float64 `json:"period,omitempty" tf:"period,omitempty"`
// One Time Password Type, supported Values are totp for Time-Based One Time Password and hotp for Counter Based. Defaults to totp.
// OTP Type, totp for Time-Based One Time Password or hotp for counter base one time password
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type OtpPolicyObservation struct {
// What hashing algorithm should be used to generate the OTP, Valid options are HmacSHA1,HmacSHA256 and HmacSHA512. Defaults to HmacSHA1.
// What hashing algorithm should be used to generate the OTP.
Algorithm *string `json:"algorithm,omitempty" tf:"algorithm,omitempty"`
// How many digits the OTP have. Defaults to 6.
Digits *float64 `json:"digits,omitempty" tf:"digits,omitempty"`
// What should the initial counter value be. Defaults to 2.
InitialCounter *float64 `json:"initialCounter,omitempty" tf:"initial_counter,omitempty"`
// How far ahead should the server look just in case the token generator and server are out of time sync or counter sync. Defaults to 1.
LookAheadWindow *float64 `json:"lookAheadWindow,omitempty" tf:"look_ahead_window,omitempty"`
// How many seconds should an OTP token be valid. Defaults to 30.
Period *float64 `json:"period,omitempty" tf:"period,omitempty"`
// One Time Password Type, supported Values are totp for Time-Based One Time Password and hotp for Counter Based. Defaults to totp.
// OTP Type, totp for Time-Based One Time Password or hotp for counter base one time password
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type OtpPolicyParameters struct {
// What hashing algorithm should be used to generate the OTP, Valid options are HmacSHA1,HmacSHA256 and HmacSHA512. Defaults to HmacSHA1.
// What hashing algorithm should be used to generate the OTP.
// +kubebuilder:validation:Optional
Algorithm *string `json:"algorithm,omitempty" tf:"algorithm,omitempty"`
// How many digits the OTP have. Defaults to 6.
// +kubebuilder:validation:Optional
Digits *float64 `json:"digits,omitempty" tf:"digits,omitempty"`
// What should the initial counter value be. Defaults to 2.
// +kubebuilder:validation:Optional
InitialCounter *float64 `json:"initialCounter,omitempty" tf:"initial_counter,omitempty"`
// How far ahead should the server look just in case the token generator and server are out of time sync or counter sync. Defaults to 1.
// +kubebuilder:validation:Optional
LookAheadWindow *float64 `json:"lookAheadWindow,omitempty" tf:"look_ahead_window,omitempty"`
// How many seconds should an OTP token be valid. Defaults to 30.
// +kubebuilder:validation:Optional
Period *float64 `json:"period,omitempty" tf:"period,omitempty"`
// One Time Password Type, supported Values are totp for Time-Based One Time Password and hotp for Counter Based. Defaults to totp.
// OTP Type, totp for Time-Based One Time Password or hotp for counter base one time password
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type RealmInitParameters struct {
// The maximum amount of time a client has to finish the authorization code flow.
AccessCodeLifespan *string `json:"accessCodeLifespan,omitempty" tf:"access_code_lifespan,omitempty"`
// The maximum amount of time a user is permitted to stay on the login page before the authentication process must be restarted.
AccessCodeLifespanLogin *string `json:"accessCodeLifespanLogin,omitempty" tf:"access_code_lifespan_login,omitempty"`
// The maximum amount of time a user has to complete login related actions, such as updating a password.
AccessCodeLifespanUserAction *string `json:"accessCodeLifespanUserAction,omitempty" tf:"access_code_lifespan_user_action,omitempty"`
// The amount of time an access token can be used before it expires.
AccessTokenLifespan *string `json:"accessTokenLifespan,omitempty" tf:"access_token_lifespan,omitempty"`
// The amount of time an access token issued with the OpenID Connect Implicit Flow can be used before it expires.
AccessTokenLifespanForImplicitFlow *string `json:"accessTokenLifespanForImplicitFlow,omitempty" tf:"access_token_lifespan_for_implicit_flow,omitempty"`
// Used for account management pages.
AccountTheme *string `json:"accountTheme,omitempty" tf:"account_theme,omitempty"`
// The maximum time a user has to use an admin-generated permit before it expires.
ActionTokenGeneratedByAdminLifespan *string `json:"actionTokenGeneratedByAdminLifespan,omitempty" tf:"action_token_generated_by_admin_lifespan,omitempty"`
// The maximum time a user has to use a user-generated permit before it expires.
ActionTokenGeneratedByUserLifespan *string `json:"actionTokenGeneratedByUserLifespan,omitempty" tf:"action_token_generated_by_user_lifespan,omitempty"`
// Used for the admin console.
AdminTheme *string `json:"adminTheme,omitempty" tf:"admin_theme,omitempty"`
// A map of custom attributes to add to the realm.
// +mapType=granular
Attributes map[string]*string `json:"attributes,omitempty" tf:"attributes,omitempty"`
// The desired flow for browser authentication. Defaults to browser.
// Which flow should be used for BrowserFlow
BrowserFlow *string `json:"browserFlow,omitempty" tf:"browser_flow,omitempty"`
// The desired flow for client authentication. Defaults to clients.
// Which flow should be used for ClientAuthenticationFlow
ClientAuthenticationFlow *string `json:"clientAuthenticationFlow,omitempty" tf:"client_authentication_flow,omitempty"`
// The amount of time a session can be idle before it expires. Users can override it for individual clients.
ClientSessionIdleTimeout *string `json:"clientSessionIdleTimeout,omitempty" tf:"client_session_idle_timeout,omitempty"`
// The maximum amount of time before a session expires regardless of activity. Users can override it for individual clients.
ClientSessionMaxLifespan *string `json:"clientSessionMaxLifespan,omitempty" tf:"client_session_max_lifespan,omitempty"`
// A list of default default client scopes to be used for client definitions. Defaults to [] or keycloak's built-in default default client-scopes.
// +listType=set
DefaultDefaultClientScopes []*string `json:"defaultDefaultClientScopes,omitempty" tf:"default_default_client_scopes,omitempty"`
// A list of default optional client scopes to be used for client definitions. Defaults to [] or keycloak's built-in default optional client-scopes.
// +listType=set
DefaultOptionalClientScopes []*string `json:"defaultOptionalClientScopes,omitempty" tf:"default_optional_client_scopes,omitempty"`
// Default algorithm used to sign tokens for the realm.
DefaultSignatureAlgorithm *string `json:"defaultSignatureAlgorithm,omitempty" tf:"default_signature_algorithm,omitempty"`
// The desired flow for direct access authentication. Defaults to direct grant.
// Which flow should be used for DirectGrantFlow
DirectGrantFlow *string `json:"directGrantFlow,omitempty" tf:"direct_grant_flow,omitempty"`
// The display name for the realm that is shown when logging in to the admin console.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// The display name for the realm that is rendered as HTML on the screen when logging in to the admin console.
DisplayNameHTML *string `json:"displayNameHtml,omitempty" tf:"display_name_html,omitempty"`
// The desired flow for Docker authentication. Defaults to docker auth.
// Which flow should be used for DockerAuthenticationFlow
DockerAuthenticationFlow *string `json:"dockerAuthenticationFlow,omitempty" tf:"docker_authentication_flow,omitempty"`
// When true, multiple users will be allowed to have the same email address. This argument must be set to false if login_with_email_allowed is set to true.
DuplicateEmailsAllowed *bool `json:"duplicateEmailsAllowed,omitempty" tf:"duplicate_emails_allowed,omitempty"`
// When true, the username field is editable.
EditUsernameAllowed *bool `json:"editUsernameAllowed,omitempty" tf:"edit_username_allowed,omitempty"`
// Used for emails that are sent by Keycloak.
EmailTheme *string `json:"emailTheme,omitempty" tf:"email_theme,omitempty"`
// When false, users and clients will not be able to access this realm. Defaults to true.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// When specified, this will be used as the realm's internal ID within Keycloak. When not specified, the realm's internal ID will be set to the realm's name.
InternalID *string `json:"internalId,omitempty" tf:"internal_id,omitempty"`
Internationalization []InternationalizationInitParameters `json:"internationalization,omitempty" tf:"internationalization,omitempty"`
// Used for the login, forgot password, and registration pages.
LoginTheme *string `json:"loginTheme,omitempty" tf:"login_theme,omitempty"`
// When true, users may log in with their email address.
LoginWithEmailAllowed *bool `json:"loginWithEmailAllowed,omitempty" tf:"login_with_email_allowed,omitempty"`
// The maximum amount of time a client has to finish the device code flow before it expires.
Oauth2DeviceCodeLifespan *string `json:"oauth2DeviceCodeLifespan,omitempty" tf:"oauth2_device_code_lifespan,omitempty"`
// The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.
Oauth2DevicePollingInterval *float64 `json:"oauth2DevicePollingInterval,omitempty" tf:"oauth2_device_polling_interval,omitempty"`
// The amount of time an offline session can be idle before it expires.
OfflineSessionIdleTimeout *string `json:"offlineSessionIdleTimeout,omitempty" tf:"offline_session_idle_timeout,omitempty"`
// The maximum amount of time before an offline session expires regardless of activity.
OfflineSessionMaxLifespan *string `json:"offlineSessionMaxLifespan,omitempty" tf:"offline_session_max_lifespan,omitempty"`
// Enable offline_session_max_lifespan.
OfflineSessionMaxLifespanEnabled *bool `json:"offlineSessionMaxLifespanEnabled,omitempty" tf:"offline_session_max_lifespan_enabled,omitempty"`
OtpPolicy []OtpPolicyInitParameters `json:"otpPolicy,omitempty" tf:"otp_policy,omitempty"`
// The password policy for users within the realm.
// String that represents the passwordPolicies that are in place. Each policy is separated with " and ". Supported policies can be found in the server-info providers page. example: "upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)"
PasswordPolicy *string `json:"passwordPolicy,omitempty" tf:"password_policy,omitempty"`
// The name of the realm. This is unique across Keycloak. This will also be used as the realm's internal ID within Keycloak.
Realm *string `json:"realm,omitempty" tf:"realm,omitempty"`
// Maximum number of times a refresh token can be reused before they are revoked. If unspecified and 'revoke_refresh_token' is enabled the default value is 0 and refresh tokens can not be reused.
RefreshTokenMaxReuse *float64 `json:"refreshTokenMaxReuse,omitempty" tf:"refresh_token_max_reuse,omitempty"`
// When true, user registration will be enabled, and a link for registration will be displayed on the login page.
RegistrationAllowed *bool `json:"registrationAllowed,omitempty" tf:"registration_allowed,omitempty"`
// When true, the user's email will be used as their username during registration.
RegistrationEmailAsUsername *bool `json:"registrationEmailAsUsername,omitempty" tf:"registration_email_as_username,omitempty"`
// The desired flow for user registration. Defaults to registration.
// Which flow should be used for RegistrationFlow
RegistrationFlow *string `json:"registrationFlow,omitempty" tf:"registration_flow,omitempty"`
// When true, a "remember me" checkbox will be displayed on the login page, and the user's session will not expire between browser restarts.
RememberMe *bool `json:"rememberMe,omitempty" tf:"remember_me,omitempty"`
// The desired flow to use when a user attempts to reset their credentials. Defaults to reset credentials.
// Which flow should be used for ResetCredentialsFlow
ResetCredentialsFlow *string `json:"resetCredentialsFlow,omitempty" tf:"reset_credentials_flow,omitempty"`
// When true, a "forgot password" link will be displayed on the login page.
ResetPasswordAllowed *bool `json:"resetPasswordAllowed,omitempty" tf:"reset_password_allowed,omitempty"`
// If enabled a refresh token can only be used number of times specified in 'refresh_token_max_reuse' before they are revoked. If unspecified, refresh tokens can be reused.
RevokeRefreshToken *bool `json:"revokeRefreshToken,omitempty" tf:"revoke_refresh_token,omitempty"`
SMTPServer []SMTPServerInitParameters `json:"smtpServer,omitempty" tf:"smtp_server,omitempty"`
// Can be one of following values: 'none, 'external' or 'all'
// SSL Required: Values can be 'none', 'external' or 'all'.
SSLRequired *string `json:"sslRequired,omitempty" tf:"ssl_required,omitempty"`
SecurityDefenses []SecurityDefensesInitParameters `json:"securityDefenses,omitempty" tf:"security_defenses,omitempty"`
// The amount of time a session can be idle before it expires.
SsoSessionIdleTimeout *string `json:"ssoSessionIdleTimeout,omitempty" tf:"sso_session_idle_timeout,omitempty"`
// Similar to sso_session_idle_timeout, but used when a user clicks "Remember Me". If not set, Keycloak will default to the value of sso_session_idle_timeout.
SsoSessionIdleTimeoutRememberMe *string `json:"ssoSessionIdleTimeoutRememberMe,omitempty" tf:"sso_session_idle_timeout_remember_me,omitempty"`
// The maximum amount of time before a session expires regardless of activity.
SsoSessionMaxLifespan *string `json:"ssoSessionMaxLifespan,omitempty" tf:"sso_session_max_lifespan,omitempty"`
// Similar to sso_session_max_lifespan, but used when a user clicks "Remember Me". If not set, Keycloak will default to the value of sso_session_max_lifespan.
SsoSessionMaxLifespanRememberMe *string `json:"ssoSessionMaxLifespanRememberMe,omitempty" tf:"sso_session_max_lifespan_remember_me,omitempty"`
// When true, users are allowed to manage their own resources. Defaults to false.
UserManagedAccess *bool `json:"userManagedAccess,omitempty" tf:"user_managed_access,omitempty"`
// When true, users are required to verify their email address after registration and after email address changes.
VerifyEmail *bool `json:"verifyEmail,omitempty" tf:"verify_email,omitempty"`
// Configuration for WebAuthn Passwordless Policy authentication.
WebAuthnPasswordlessPolicy []WebAuthnPasswordlessPolicyInitParameters `json:"webAuthnPasswordlessPolicy,omitempty" tf:"web_authn_passwordless_policy,omitempty"`
// Configuration for WebAuthn Policy authentication.
WebAuthnPolicy []WebAuthnPolicyInitParameters `json:"webAuthnPolicy,omitempty" tf:"web_authn_policy,omitempty"`
}
type RealmObservation struct {
// The maximum amount of time a client has to finish the authorization code flow.
AccessCodeLifespan *string `json:"accessCodeLifespan,omitempty" tf:"access_code_lifespan,omitempty"`
// The maximum amount of time a user is permitted to stay on the login page before the authentication process must be restarted.
AccessCodeLifespanLogin *string `json:"accessCodeLifespanLogin,omitempty" tf:"access_code_lifespan_login,omitempty"`
// The maximum amount of time a user has to complete login related actions, such as updating a password.
AccessCodeLifespanUserAction *string `json:"accessCodeLifespanUserAction,omitempty" tf:"access_code_lifespan_user_action,omitempty"`
// The amount of time an access token can be used before it expires.
AccessTokenLifespan *string `json:"accessTokenLifespan,omitempty" tf:"access_token_lifespan,omitempty"`
// The amount of time an access token issued with the OpenID Connect Implicit Flow can be used before it expires.
AccessTokenLifespanForImplicitFlow *string `json:"accessTokenLifespanForImplicitFlow,omitempty" tf:"access_token_lifespan_for_implicit_flow,omitempty"`
// Used for account management pages.
AccountTheme *string `json:"accountTheme,omitempty" tf:"account_theme,omitempty"`
// The maximum time a user has to use an admin-generated permit before it expires.
ActionTokenGeneratedByAdminLifespan *string `json:"actionTokenGeneratedByAdminLifespan,omitempty" tf:"action_token_generated_by_admin_lifespan,omitempty"`
// The maximum time a user has to use a user-generated permit before it expires.
ActionTokenGeneratedByUserLifespan *string `json:"actionTokenGeneratedByUserLifespan,omitempty" tf:"action_token_generated_by_user_lifespan,omitempty"`
// Used for the admin console.
AdminTheme *string `json:"adminTheme,omitempty" tf:"admin_theme,omitempty"`
// A map of custom attributes to add to the realm.
// +mapType=granular
Attributes map[string]*string `json:"attributes,omitempty" tf:"attributes,omitempty"`
// The desired flow for browser authentication. Defaults to browser.
// Which flow should be used for BrowserFlow
BrowserFlow *string `json:"browserFlow,omitempty" tf:"browser_flow,omitempty"`
// The desired flow for client authentication. Defaults to clients.
// Which flow should be used for ClientAuthenticationFlow
ClientAuthenticationFlow *string `json:"clientAuthenticationFlow,omitempty" tf:"client_authentication_flow,omitempty"`
// The amount of time a session can be idle before it expires. Users can override it for individual clients.
ClientSessionIdleTimeout *string `json:"clientSessionIdleTimeout,omitempty" tf:"client_session_idle_timeout,omitempty"`
// The maximum amount of time before a session expires regardless of activity. Users can override it for individual clients.
ClientSessionMaxLifespan *string `json:"clientSessionMaxLifespan,omitempty" tf:"client_session_max_lifespan,omitempty"`
// A list of default default client scopes to be used for client definitions. Defaults to [] or keycloak's built-in default default client-scopes.
// +listType=set
DefaultDefaultClientScopes []*string `json:"defaultDefaultClientScopes,omitempty" tf:"default_default_client_scopes,omitempty"`
// A list of default optional client scopes to be used for client definitions. Defaults to [] or keycloak's built-in default optional client-scopes.
// +listType=set
DefaultOptionalClientScopes []*string `json:"defaultOptionalClientScopes,omitempty" tf:"default_optional_client_scopes,omitempty"`
// Default algorithm used to sign tokens for the realm.
DefaultSignatureAlgorithm *string `json:"defaultSignatureAlgorithm,omitempty" tf:"default_signature_algorithm,omitempty"`
// The desired flow for direct access authentication. Defaults to direct grant.
// Which flow should be used for DirectGrantFlow
DirectGrantFlow *string `json:"directGrantFlow,omitempty" tf:"direct_grant_flow,omitempty"`
// The display name for the realm that is shown when logging in to the admin console.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// The display name for the realm that is rendered as HTML on the screen when logging in to the admin console.
DisplayNameHTML *string `json:"displayNameHtml,omitempty" tf:"display_name_html,omitempty"`
// The desired flow for Docker authentication. Defaults to docker auth.
// Which flow should be used for DockerAuthenticationFlow
DockerAuthenticationFlow *string `json:"dockerAuthenticationFlow,omitempty" tf:"docker_authentication_flow,omitempty"`
// When true, multiple users will be allowed to have the same email address. This argument must be set to false if login_with_email_allowed is set to true.
DuplicateEmailsAllowed *bool `json:"duplicateEmailsAllowed,omitempty" tf:"duplicate_emails_allowed,omitempty"`
// When true, the username field is editable.
EditUsernameAllowed *bool `json:"editUsernameAllowed,omitempty" tf:"edit_username_allowed,omitempty"`
// Used for emails that are sent by Keycloak.
EmailTheme *string `json:"emailTheme,omitempty" tf:"email_theme,omitempty"`
// When false, users and clients will not be able to access this realm. Defaults to true.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// When specified, this will be used as the realm's internal ID within Keycloak. When not specified, the realm's internal ID will be set to the realm's name.
InternalID *string `json:"internalId,omitempty" tf:"internal_id,omitempty"`
Internationalization []InternationalizationObservation `json:"internationalization,omitempty" tf:"internationalization,omitempty"`
// Used for the login, forgot password, and registration pages.
LoginTheme *string `json:"loginTheme,omitempty" tf:"login_theme,omitempty"`
// When true, users may log in with their email address.
LoginWithEmailAllowed *bool `json:"loginWithEmailAllowed,omitempty" tf:"login_with_email_allowed,omitempty"`
// The maximum amount of time a client has to finish the device code flow before it expires.
Oauth2DeviceCodeLifespan *string `json:"oauth2DeviceCodeLifespan,omitempty" tf:"oauth2_device_code_lifespan,omitempty"`
// The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.
Oauth2DevicePollingInterval *float64 `json:"oauth2DevicePollingInterval,omitempty" tf:"oauth2_device_polling_interval,omitempty"`
// The amount of time an offline session can be idle before it expires.
OfflineSessionIdleTimeout *string `json:"offlineSessionIdleTimeout,omitempty" tf:"offline_session_idle_timeout,omitempty"`
// The maximum amount of time before an offline session expires regardless of activity.
OfflineSessionMaxLifespan *string `json:"offlineSessionMaxLifespan,omitempty" tf:"offline_session_max_lifespan,omitempty"`
// Enable offline_session_max_lifespan.
OfflineSessionMaxLifespanEnabled *bool `json:"offlineSessionMaxLifespanEnabled,omitempty" tf:"offline_session_max_lifespan_enabled,omitempty"`
OtpPolicy []OtpPolicyObservation `json:"otpPolicy,omitempty" tf:"otp_policy,omitempty"`
// The password policy for users within the realm.
// String that represents the passwordPolicies that are in place. Each policy is separated with " and ". Supported policies can be found in the server-info providers page. example: "upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)"
PasswordPolicy *string `json:"passwordPolicy,omitempty" tf:"password_policy,omitempty"`
// The name of the realm. This is unique across Keycloak. This will also be used as the realm's internal ID within Keycloak.
Realm *string `json:"realm,omitempty" tf:"realm,omitempty"`
// Maximum number of times a refresh token can be reused before they are revoked. If unspecified and 'revoke_refresh_token' is enabled the default value is 0 and refresh tokens can not be reused.
RefreshTokenMaxReuse *float64 `json:"refreshTokenMaxReuse,omitempty" tf:"refresh_token_max_reuse,omitempty"`
// When true, user registration will be enabled, and a link for registration will be displayed on the login page.
RegistrationAllowed *bool `json:"registrationAllowed,omitempty" tf:"registration_allowed,omitempty"`
// When true, the user's email will be used as their username during registration.
RegistrationEmailAsUsername *bool `json:"registrationEmailAsUsername,omitempty" tf:"registration_email_as_username,omitempty"`
// The desired flow for user registration. Defaults to registration.
// Which flow should be used for RegistrationFlow
RegistrationFlow *string `json:"registrationFlow,omitempty" tf:"registration_flow,omitempty"`
// When true, a "remember me" checkbox will be displayed on the login page, and the user's session will not expire between browser restarts.
RememberMe *bool `json:"rememberMe,omitempty" tf:"remember_me,omitempty"`
// The desired flow to use when a user attempts to reset their credentials. Defaults to reset credentials.
// Which flow should be used for ResetCredentialsFlow
ResetCredentialsFlow *string `json:"resetCredentialsFlow,omitempty" tf:"reset_credentials_flow,omitempty"`
// When true, a "forgot password" link will be displayed on the login page.
ResetPasswordAllowed *bool `json:"resetPasswordAllowed,omitempty" tf:"reset_password_allowed,omitempty"`
// If enabled a refresh token can only be used number of times specified in 'refresh_token_max_reuse' before they are revoked. If unspecified, refresh tokens can be reused.
RevokeRefreshToken *bool `json:"revokeRefreshToken,omitempty" tf:"revoke_refresh_token,omitempty"`
SMTPServer []SMTPServerObservation `json:"smtpServer,omitempty" tf:"smtp_server,omitempty"`
// Can be one of following values: 'none, 'external' or 'all'
// SSL Required: Values can be 'none', 'external' or 'all'.
SSLRequired *string `json:"sslRequired,omitempty" tf:"ssl_required,omitempty"`
SecurityDefenses []SecurityDefensesObservation `json:"securityDefenses,omitempty" tf:"security_defenses,omitempty"`
// The amount of time a session can be idle before it expires.
SsoSessionIdleTimeout *string `json:"ssoSessionIdleTimeout,omitempty" tf:"sso_session_idle_timeout,omitempty"`
// Similar to sso_session_idle_timeout, but used when a user clicks "Remember Me". If not set, Keycloak will default to the value of sso_session_idle_timeout.
SsoSessionIdleTimeoutRememberMe *string `json:"ssoSessionIdleTimeoutRememberMe,omitempty" tf:"sso_session_idle_timeout_remember_me,omitempty"`
// The maximum amount of time before a session expires regardless of activity.
SsoSessionMaxLifespan *string `json:"ssoSessionMaxLifespan,omitempty" tf:"sso_session_max_lifespan,omitempty"`
// Similar to sso_session_max_lifespan, but used when a user clicks "Remember Me". If not set, Keycloak will default to the value of sso_session_max_lifespan.
SsoSessionMaxLifespanRememberMe *string `json:"ssoSessionMaxLifespanRememberMe,omitempty" tf:"sso_session_max_lifespan_remember_me,omitempty"`
// When true, users are allowed to manage their own resources. Defaults to false.
UserManagedAccess *bool `json:"userManagedAccess,omitempty" tf:"user_managed_access,omitempty"`
// When true, users are required to verify their email address after registration and after email address changes.
VerifyEmail *bool `json:"verifyEmail,omitempty" tf:"verify_email,omitempty"`
// Configuration for WebAuthn Passwordless Policy authentication.
WebAuthnPasswordlessPolicy []WebAuthnPasswordlessPolicyObservation `json:"webAuthnPasswordlessPolicy,omitempty" tf:"web_authn_passwordless_policy,omitempty"`
// Configuration for WebAuthn Policy authentication.
WebAuthnPolicy []WebAuthnPolicyObservation `json:"webAuthnPolicy,omitempty" tf:"web_authn_policy,omitempty"`
}
type RealmParameters struct {
// The maximum amount of time a client has to finish the authorization code flow.
// +kubebuilder:validation:Optional
AccessCodeLifespan *string `json:"accessCodeLifespan,omitempty" tf:"access_code_lifespan,omitempty"`
// The maximum amount of time a user is permitted to stay on the login page before the authentication process must be restarted.
// +kubebuilder:validation:Optional
AccessCodeLifespanLogin *string `json:"accessCodeLifespanLogin,omitempty" tf:"access_code_lifespan_login,omitempty"`
// The maximum amount of time a user has to complete login related actions, such as updating a password.
// +kubebuilder:validation:Optional
AccessCodeLifespanUserAction *string `json:"accessCodeLifespanUserAction,omitempty" tf:"access_code_lifespan_user_action,omitempty"`
// The amount of time an access token can be used before it expires.
// +kubebuilder:validation:Optional
AccessTokenLifespan *string `json:"accessTokenLifespan,omitempty" tf:"access_token_lifespan,omitempty"`
// The amount of time an access token issued with the OpenID Connect Implicit Flow can be used before it expires.
// +kubebuilder:validation:Optional
AccessTokenLifespanForImplicitFlow *string `json:"accessTokenLifespanForImplicitFlow,omitempty" tf:"access_token_lifespan_for_implicit_flow,omitempty"`
// Used for account management pages.
// +kubebuilder:validation:Optional
AccountTheme *string `json:"accountTheme,omitempty" tf:"account_theme,omitempty"`
// The maximum time a user has to use an admin-generated permit before it expires.
// +kubebuilder:validation:Optional
ActionTokenGeneratedByAdminLifespan *string `json:"actionTokenGeneratedByAdminLifespan,omitempty" tf:"action_token_generated_by_admin_lifespan,omitempty"`
// The maximum time a user has to use a user-generated permit before it expires.
// +kubebuilder:validation:Optional
ActionTokenGeneratedByUserLifespan *string `json:"actionTokenGeneratedByUserLifespan,omitempty" tf:"action_token_generated_by_user_lifespan,omitempty"`
// Used for the admin console.
// +kubebuilder:validation:Optional
AdminTheme *string `json:"adminTheme,omitempty" tf:"admin_theme,omitempty"`
// A map of custom attributes to add to the realm.
// +kubebuilder:validation:Optional
// +mapType=granular
Attributes map[string]*string `json:"attributes,omitempty" tf:"attributes,omitempty"`
// The desired flow for browser authentication. Defaults to browser.
// Which flow should be used for BrowserFlow
// +kubebuilder:validation:Optional
BrowserFlow *string `json:"browserFlow,omitempty" tf:"browser_flow,omitempty"`
// The desired flow for client authentication. Defaults to clients.
// Which flow should be used for ClientAuthenticationFlow
// +kubebuilder:validation:Optional
ClientAuthenticationFlow *string `json:"clientAuthenticationFlow,omitempty" tf:"client_authentication_flow,omitempty"`
// The amount of time a session can be idle before it expires. Users can override it for individual clients.
// +kubebuilder:validation:Optional
ClientSessionIdleTimeout *string `json:"clientSessionIdleTimeout,omitempty" tf:"client_session_idle_timeout,omitempty"`
// The maximum amount of time before a session expires regardless of activity. Users can override it for individual clients.
// +kubebuilder:validation:Optional
ClientSessionMaxLifespan *string `json:"clientSessionMaxLifespan,omitempty" tf:"client_session_max_lifespan,omitempty"`
// A list of default default client scopes to be used for client definitions. Defaults to [] or keycloak's built-in default default client-scopes.
// +kubebuilder:validation:Optional
// +listType=set
DefaultDefaultClientScopes []*string `json:"defaultDefaultClientScopes,omitempty" tf:"default_default_client_scopes,omitempty"`
// A list of default optional client scopes to be used for client definitions. Defaults to [] or keycloak's built-in default optional client-scopes.
// +kubebuilder:validation:Optional
// +listType=set
DefaultOptionalClientScopes []*string `json:"defaultOptionalClientScopes,omitempty" tf:"default_optional_client_scopes,omitempty"`
// Default algorithm used to sign tokens for the realm.
// +kubebuilder:validation:Optional
DefaultSignatureAlgorithm *string `json:"defaultSignatureAlgorithm,omitempty" tf:"default_signature_algorithm,omitempty"`
// The desired flow for direct access authentication. Defaults to direct grant.
// Which flow should be used for DirectGrantFlow
// +kubebuilder:validation:Optional
DirectGrantFlow *string `json:"directGrantFlow,omitempty" tf:"direct_grant_flow,omitempty"`
// The display name for the realm that is shown when logging in to the admin console.
// +kubebuilder:validation:Optional
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// The display name for the realm that is rendered as HTML on the screen when logging in to the admin console.
// +kubebuilder:validation:Optional
DisplayNameHTML *string `json:"displayNameHtml,omitempty" tf:"display_name_html,omitempty"`
// The desired flow for Docker authentication. Defaults to docker auth.
// Which flow should be used for DockerAuthenticationFlow
// +kubebuilder:validation:Optional
DockerAuthenticationFlow *string `json:"dockerAuthenticationFlow,omitempty" tf:"docker_authentication_flow,omitempty"`
// When true, multiple users will be allowed to have the same email address. This argument must be set to false if login_with_email_allowed is set to true.
// +kubebuilder:validation:Optional
DuplicateEmailsAllowed *bool `json:"duplicateEmailsAllowed,omitempty" tf:"duplicate_emails_allowed,omitempty"`
// When true, the username field is editable.
// +kubebuilder:validation:Optional
EditUsernameAllowed *bool `json:"editUsernameAllowed,omitempty" tf:"edit_username_allowed,omitempty"`
// Used for emails that are sent by Keycloak.
// +kubebuilder:validation:Optional
EmailTheme *string `json:"emailTheme,omitempty" tf:"email_theme,omitempty"`
// When false, users and clients will not be able to access this realm. Defaults to true.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// When specified, this will be used as the realm's internal ID within Keycloak. When not specified, the realm's internal ID will be set to the realm's name.
// +kubebuilder:validation:Optional
InternalID *string `json:"internalId,omitempty" tf:"internal_id,omitempty"`
// +kubebuilder:validation:Optional
Internationalization []InternationalizationParameters `json:"internationalization,omitempty" tf:"internationalization,omitempty"`
// Used for the login, forgot password, and registration pages.
// +kubebuilder:validation:Optional
LoginTheme *string `json:"loginTheme,omitempty" tf:"login_theme,omitempty"`
// When true, users may log in with their email address.
// +kubebuilder:validation:Optional
LoginWithEmailAllowed *bool `json:"loginWithEmailAllowed,omitempty" tf:"login_with_email_allowed,omitempty"`
// The maximum amount of time a client has to finish the device code flow before it expires.
// +kubebuilder:validation:Optional
Oauth2DeviceCodeLifespan *string `json:"oauth2DeviceCodeLifespan,omitempty" tf:"oauth2_device_code_lifespan,omitempty"`
// The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.
// +kubebuilder:validation:Optional
Oauth2DevicePollingInterval *float64 `json:"oauth2DevicePollingInterval,omitempty" tf:"oauth2_device_polling_interval,omitempty"`
// The amount of time an offline session can be idle before it expires.
// +kubebuilder:validation:Optional
OfflineSessionIdleTimeout *string `json:"offlineSessionIdleTimeout,omitempty" tf:"offline_session_idle_timeout,omitempty"`
// The maximum amount of time before an offline session expires regardless of activity.
// +kubebuilder:validation:Optional
OfflineSessionMaxLifespan *string `json:"offlineSessionMaxLifespan,omitempty" tf:"offline_session_max_lifespan,omitempty"`
// Enable offline_session_max_lifespan.
// +kubebuilder:validation:Optional
OfflineSessionMaxLifespanEnabled *bool `json:"offlineSessionMaxLifespanEnabled,omitempty" tf:"offline_session_max_lifespan_enabled,omitempty"`
// +kubebuilder:validation:Optional
OtpPolicy []OtpPolicyParameters `json:"otpPolicy,omitempty" tf:"otp_policy,omitempty"`
// The password policy for users within the realm.
// String that represents the passwordPolicies that are in place. Each policy is separated with " and ". Supported policies can be found in the server-info providers page. example: "upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)"
// +kubebuilder:validation:Optional
PasswordPolicy *string `json:"passwordPolicy,omitempty" tf:"password_policy,omitempty"`
// The name of the realm. This is unique across Keycloak. This will also be used as the realm's internal ID within Keycloak.
// +kubebuilder:validation:Optional
Realm *string `json:"realm,omitempty" tf:"realm,omitempty"`
// Maximum number of times a refresh token can be reused before they are revoked. If unspecified and 'revoke_refresh_token' is enabled the default value is 0 and refresh tokens can not be reused.
// +kubebuilder:validation:Optional
RefreshTokenMaxReuse *float64 `json:"refreshTokenMaxReuse,omitempty" tf:"refresh_token_max_reuse,omitempty"`
// When true, user registration will be enabled, and a link for registration will be displayed on the login page.
// +kubebuilder:validation:Optional
RegistrationAllowed *bool `json:"registrationAllowed,omitempty" tf:"registration_allowed,omitempty"`
// When true, the user's email will be used as their username during registration.
// +kubebuilder:validation:Optional
RegistrationEmailAsUsername *bool `json:"registrationEmailAsUsername,omitempty" tf:"registration_email_as_username,omitempty"`
// The desired flow for user registration. Defaults to registration.
// Which flow should be used for RegistrationFlow
// +kubebuilder:validation:Optional
RegistrationFlow *string `json:"registrationFlow,omitempty" tf:"registration_flow,omitempty"`
// When true, a "remember me" checkbox will be displayed on the login page, and the user's session will not expire between browser restarts.
// +kubebuilder:validation:Optional
RememberMe *bool `json:"rememberMe,omitempty" tf:"remember_me,omitempty"`
// The desired flow to use when a user attempts to reset their credentials. Defaults to reset credentials.
// Which flow should be used for ResetCredentialsFlow
// +kubebuilder:validation:Optional
ResetCredentialsFlow *string `json:"resetCredentialsFlow,omitempty" tf:"reset_credentials_flow,omitempty"`
// When true, a "forgot password" link will be displayed on the login page.
// +kubebuilder:validation:Optional
ResetPasswordAllowed *bool `json:"resetPasswordAllowed,omitempty" tf:"reset_password_allowed,omitempty"`
// If enabled a refresh token can only be used number of times specified in 'refresh_token_max_reuse' before they are revoked. If unspecified, refresh tokens can be reused.
// +kubebuilder:validation:Optional
RevokeRefreshToken *bool `json:"revokeRefreshToken,omitempty" tf:"revoke_refresh_token,omitempty"`
// +kubebuilder:validation:Optional
SMTPServer []SMTPServerParameters `json:"smtpServer,omitempty" tf:"smtp_server,omitempty"`
// Can be one of following values: 'none, 'external' or 'all'
// SSL Required: Values can be 'none', 'external' or 'all'.
// +kubebuilder:validation:Optional
SSLRequired *string `json:"sslRequired,omitempty" tf:"ssl_required,omitempty"`
// +kubebuilder:validation:Optional
SecurityDefenses []SecurityDefensesParameters `json:"securityDefenses,omitempty" tf:"security_defenses,omitempty"`
// The amount of time a session can be idle before it expires.
// +kubebuilder:validation:Optional
SsoSessionIdleTimeout *string `json:"ssoSessionIdleTimeout,omitempty" tf:"sso_session_idle_timeout,omitempty"`
// Similar to sso_session_idle_timeout, but used when a user clicks "Remember Me". If not set, Keycloak will default to the value of sso_session_idle_timeout.
// +kubebuilder:validation:Optional
SsoSessionIdleTimeoutRememberMe *string `json:"ssoSessionIdleTimeoutRememberMe,omitempty" tf:"sso_session_idle_timeout_remember_me,omitempty"`
// The maximum amount of time before a session expires regardless of activity.
// +kubebuilder:validation:Optional
SsoSessionMaxLifespan *string `json:"ssoSessionMaxLifespan,omitempty" tf:"sso_session_max_lifespan,omitempty"`
// Similar to sso_session_max_lifespan, but used when a user clicks "Remember Me". If not set, Keycloak will default to the value of sso_session_max_lifespan.
// +kubebuilder:validation:Optional
SsoSessionMaxLifespanRememberMe *string `json:"ssoSessionMaxLifespanRememberMe,omitempty" tf:"sso_session_max_lifespan_remember_me,omitempty"`
// When true, users are allowed to manage their own resources. Defaults to false.
// +kubebuilder:validation:Optional
UserManagedAccess *bool `json:"userManagedAccess,omitempty" tf:"user_managed_access,omitempty"`
// When true, users are required to verify their email address after registration and after email address changes.
// +kubebuilder:validation:Optional
VerifyEmail *bool `json:"verifyEmail,omitempty" tf:"verify_email,omitempty"`
// Configuration for WebAuthn Passwordless Policy authentication.
// +kubebuilder:validation:Optional
WebAuthnPasswordlessPolicy []WebAuthnPasswordlessPolicyParameters `json:"webAuthnPasswordlessPolicy,omitempty" tf:"web_authn_passwordless_policy,omitempty"`
// Configuration for WebAuthn Policy authentication.
// +kubebuilder:validation:Optional
WebAuthnPolicy []WebAuthnPolicyParameters `json:"webAuthnPolicy,omitempty" tf:"web_authn_policy,omitempty"`
}
type SMTPServerInitParameters struct {
// Enables authentication to the SMTP server. This block supports the following arguments:
Auth []AuthInitParameters `json:"auth,omitempty" tf:"auth,omitempty"`
// The email address uses for bounces.
EnvelopeFrom *string `json:"envelopeFrom,omitempty" tf:"envelope_from,omitempty"`
// The email address for the sender.
From *string `json:"from,omitempty" tf:"from,omitempty"`
// The display name of the sender email address.
FromDisplayName *string `json:"fromDisplayName,omitempty" tf:"from_display_name,omitempty"`
// The host of the SMTP server.
Host *string `json:"host,omitempty" tf:"host,omitempty"`
// The port of the SMTP server (defaults to 25).
Port *string `json:"port,omitempty" tf:"port,omitempty"`
// The "reply to" email address.
ReplyTo *string `json:"replyTo,omitempty" tf:"reply_to,omitempty"`
// The display name of the "reply to" email address.
ReplyToDisplayName *string `json:"replyToDisplayName,omitempty" tf:"reply_to_display_name,omitempty"`
// When true, enables SSL. Defaults to false.
SSL *bool `json:"ssl,omitempty" tf:"ssl,omitempty"`
// When true, enables StartTLS. Defaults to false.
Starttls *bool `json:"starttls,omitempty" tf:"starttls,omitempty"`
}
type SMTPServerObservation struct {
// Enables authentication to the SMTP server. This block supports the following arguments:
Auth []AuthObservation `json:"auth,omitempty" tf:"auth,omitempty"`
// The email address uses for bounces.
EnvelopeFrom *string `json:"envelopeFrom,omitempty" tf:"envelope_from,omitempty"`
// The email address for the sender.
From *string `json:"from,omitempty" tf:"from,omitempty"`
// The display name of the sender email address.
FromDisplayName *string `json:"fromDisplayName,omitempty" tf:"from_display_name,omitempty"`
// The host of the SMTP server.
Host *string `json:"host,omitempty" tf:"host,omitempty"`
// The port of the SMTP server (defaults to 25).
Port *string `json:"port,omitempty" tf:"port,omitempty"`
// The "reply to" email address.
ReplyTo *string `json:"replyTo,omitempty" tf:"reply_to,omitempty"`
// The display name of the "reply to" email address.
ReplyToDisplayName *string `json:"replyToDisplayName,omitempty" tf:"reply_to_display_name,omitempty"`
// When true, enables SSL. Defaults to false.
SSL *bool `json:"ssl,omitempty" tf:"ssl,omitempty"`
// When true, enables StartTLS. Defaults to false.
Starttls *bool `json:"starttls,omitempty" tf:"starttls,omitempty"`
}
type SMTPServerParameters struct {
// Enables authentication to the SMTP server. This block supports the following arguments:
// +kubebuilder:validation:Optional
Auth []AuthParameters `json:"auth,omitempty" tf:"auth,omitempty"`
// The email address uses for bounces.
// +kubebuilder:validation:Optional
EnvelopeFrom *string `json:"envelopeFrom,omitempty" tf:"envelope_from,omitempty"`
// The email address for the sender.
// +kubebuilder:validation:Optional
From *string `json:"from" tf:"from,omitempty"`
// The display name of the sender email address.
// +kubebuilder:validation:Optional
FromDisplayName *string `json:"fromDisplayName,omitempty" tf:"from_display_name,omitempty"`
// The host of the SMTP server.
// +kubebuilder:validation:Optional
Host *string `json:"host" tf:"host,omitempty"`
// The port of the SMTP server (defaults to 25).
// +kubebuilder:validation:Optional
Port *string `json:"port,omitempty" tf:"port,omitempty"`
// The "reply to" email address.
// +kubebuilder:validation:Optional
ReplyTo *string `json:"replyTo,omitempty" tf:"reply_to,omitempty"`
// The display name of the "reply to" email address.
// +kubebuilder:validation:Optional