forked from crossplane-contrib/provider-keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zz_identityprovider_types.go
executable file
·591 lines (458 loc) · 34.8 KB
/
zz_identityprovider_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
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
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 IdentityProviderInitParameters struct {
// When true, new users will be able to read stored tokens. This will automatically assign the broker.read-token role. Defaults to false.
// Enable/disable if new users can read any stored tokens. This assigns the broker.read-token role.
AddReadTokenRoleOnCreate *bool `json:"addReadTokenRoleOnCreate,omitempty" tf:"add_read_token_role_on_create,omitempty"`
// The unique name of identity provider.
// The alias uniquely identifies an identity provider and it is also used to build the redirect uri.
Alias *string `json:"alias,omitempty" tf:"alias,omitempty"`
// Authenticate users by default. Defaults to false.
// Enable/disable authenticate users by default.
AuthenticateByDefault *bool `json:"authenticateByDefault,omitempty" tf:"authenticate_by_default,omitempty"`
// Ordered list of requested AuthnContext ClassRefs.
// AuthnContext ClassRefs
AuthnContextClassRefs []*string `json:"authnContextClassRefs,omitempty" tf:"authn_context_class_refs,omitempty"`
// Specifies the comparison method used to evaluate the requested context classes or statements.
// AuthnContext Comparison
AuthnContextComparisonType *string `json:"authnContextComparisonType,omitempty" tf:"authn_context_comparison_type,omitempty"`
// Ordered list of requested AuthnContext DeclRefs.
// AuthnContext DeclRefs
AuthnContextDeclRefs []*string `json:"authnContextDeclRefs,omitempty" tf:"authn_context_decl_refs,omitempty"`
// Does the external IDP support backchannel logout?. Defaults to false.
// Does the external IDP support backchannel logout?
BackchannelSupported *bool `json:"backchannelSupported,omitempty" tf:"backchannel_supported,omitempty"`
// The display name for the realm that is shown when logging in to the admin console.
// Friendly name for Identity Providers.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// When false, users and clients will not be able to access this realm. Defaults to true.
// Enable/disable this identity provider.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The Entity ID that will be used to uniquely identify this SAML Service Provider.
// The Entity ID that will be used to uniquely identify this SAML Service Provider.
EntityID *string `json:"entityId,omitempty" tf:"entity_id,omitempty"`
// A map of key/value pairs to add extra configuration to this identity provider. Use this attribute at your own risk, as custom attributes may conflict with top-level configuration attributes in future provider updates.
// +mapType=granular
ExtraConfig map[string]*string `json:"extraConfig,omitempty" tf:"extra_config,omitempty"`
// Alias of authentication flow, which is triggered after first login with this identity provider. Term 'First Login' means that there is not yet existing Keycloak account linked with the authenticated identity provider account. Defaults to first broker login.
// Alias of authentication flow, which is triggered after first login with this identity provider. Term 'First Login' means that there is not yet existing Keycloak account linked with the authenticated identity provider account.
FirstBrokerLoginFlowAlias *string `json:"firstBrokerLoginFlowAlias,omitempty" tf:"first_broker_login_flow_alias,omitempty"`
// Indicates whether the identity provider must authenticate the presenter directly rather than rely on a previous security context.
// Require Force Authn.
ForceAuthn *bool `json:"forceAuthn,omitempty" tf:"force_authn,omitempty"`
// A number defining the order of this identity provider in the GUI.
// GUI Order
GuiOrder *string `json:"guiOrder,omitempty" tf:"gui_order,omitempty"`
// If hidden, then login with this provider is possible only if requested explicitly, e.g. using the 'kc_idp_hint' parameter.
// Hide On Login Page.
HideOnLoginPage *bool `json:"hideOnLoginPage,omitempty" tf:"hide_on_login_page,omitempty"`
// When true, users cannot login using this provider, but their existing accounts will be linked when possible. Defaults to false.
// If true, users cannot log in through this provider. They can only link to this provider. This is useful if you don't want to allow login from the provider, but want to integrate with a provider
LinkOnly *bool `json:"linkOnly,omitempty" tf:"link_only,omitempty"`
// Login Hint.
LoginHint *string `json:"loginHint,omitempty" tf:"login_hint,omitempty"`
// Specifies the URI reference corresponding to a name identifier format. Defaults to empty.
// Name ID Policy Format.
NameIDPolicyFormat *string `json:"nameIdPolicyFormat,omitempty" tf:"name_id_policy_format,omitempty"`
// Indicates whether the AuthnRequest must be sent using HTTP-POST binding. If false, HTTP-REDIRECT binding will be used.
// Post Binding Authn Request.
PostBindingAuthnRequest *bool `json:"postBindingAuthnRequest,omitempty" tf:"post_binding_authn_request,omitempty"`
// Indicates whether to respond to requests using HTTP-POST binding. If false, HTTP-REDIRECT binding will be used.
// Post Binding Logout.
PostBindingLogout *bool `json:"postBindingLogout,omitempty" tf:"post_binding_logout,omitempty"`
// Indicates whether to respond to requests using HTTP-POST binding. If false, HTTP-REDIRECT binding will be used..
// Post Binding Response.
PostBindingResponse *bool `json:"postBindingResponse,omitempty" tf:"post_binding_response,omitempty"`
// Alias of authentication flow, which is triggered after each login with this identity provider. Useful if you want additional verification of each user authenticated with this identity provider (for example OTP). Leave this empty if you don't want any additional authenticators to be triggered after login with this identity provider. Also note, that authenticator implementations must assume that user is already set in ClientSession as identity provider already set it. Defaults to empty.
// Alias of authentication flow, which is triggered after each login with this identity provider. Useful if you want additional verification of each user authenticated with this identity provider (for example OTP). Leave this empty if you don't want any additional authenticators to be triggered after login with this identity provider. Also note, that authenticator implementations must assume that user is already set in ClientSession as identity provider already set it.
PostBrokerLoginFlowAlias *string `json:"postBrokerLoginFlowAlias,omitempty" tf:"post_broker_login_flow_alias,omitempty"`
// The principal attribute.
// Principal Attribute
PrincipalAttribute *string `json:"principalAttribute,omitempty" tf:"principal_attribute,omitempty"`
// The principal type. Can be one of SUBJECT, ATTRIBUTE or FRIENDLY_ATTRIBUTE.
// Principal Type
PrincipalType *string `json:"principalType,omitempty" tf:"principal_type,omitempty"`
// The ID of the identity provider to use. Defaults to saml, which should be used unless you have extended Keycloak and provided your own implementation.
// provider id, is always saml, unless you have a custom implementation
ProviderID *string `json:"providerId,omitempty" tf:"provider_id,omitempty"`
// The name of the realm. This is unique across Keycloak.
// Realm Name
// +crossplane:generate:reference:type=github.com/stakater/provider-keycloak/apis/realm/v1alpha1.Realm
Realm *string `json:"realm,omitempty" tf:"realm,omitempty"`
// Reference to a Realm in realm to populate realm.
// +kubebuilder:validation:Optional
RealmRef *v1.Reference `json:"realmRef,omitempty" tf:"-"`
// Selector for a Realm in realm to populate realm.
// +kubebuilder:validation:Optional
RealmSelector *v1.Selector `json:"realmSelector,omitempty" tf:"-"`
// Signing Algorithm. Defaults to empty.
// Signing Algorithm.
SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" tf:"signature_algorithm,omitempty"`
// Signing Certificate.
// Signing Certificate.
SigningCertificate *string `json:"signingCertificate,omitempty" tf:"signing_certificate,omitempty"`
// The Url that must be used to send logout requests.
// Logout URL.
SingleLogoutServiceURL *string `json:"singleLogoutServiceUrl,omitempty" tf:"single_logout_service_url,omitempty"`
// The Url that must be used to send authentication requests (SAML AuthnRequest).
// SSO Logout URL.
SingleSignOnServiceURL *string `json:"singleSignOnServiceUrl,omitempty" tf:"single_sign_on_service_url,omitempty"`
// When true, tokens will be stored after authenticating users. Defaults to true.
// Enable/disable if tokens must be stored after authenticating users.
StoreToken *bool `json:"storeToken,omitempty" tf:"store_token,omitempty"`
// The default sync mode to use for all mappers attached to this identity provider. Can be one of IMPORT, FORCE, or LEGACY.
// Sync Mode
SyncMode *string `json:"syncMode,omitempty" tf:"sync_mode,omitempty"`
// When true, email addresses for users in this provider will automatically be verified regardless of the realm's email verification policy. Defaults to false.
// If enabled then email provided by this provider is not verified even if verification is enabled for the realm.
TrustEmail *bool `json:"trustEmail,omitempty" tf:"trust_email,omitempty"`
// Enable/disable signature validation of SAML responses.
// Enable/disable signature validation of SAML responses.
ValidateSignature *bool `json:"validateSignature,omitempty" tf:"validate_signature,omitempty"`
// Indicates whether this service provider expects an encrypted Assertion.
// Want Assertions Encrypted.
WantAssertionsEncrypted *bool `json:"wantAssertionsEncrypted,omitempty" tf:"want_assertions_encrypted,omitempty"`
// Indicates whether this service provider expects a signed Assertion.
// Want Assertions Signed.
WantAssertionsSigned *bool `json:"wantAssertionsSigned,omitempty" tf:"want_assertions_signed,omitempty"`
// The SAML signature key name. Can be one of NONE, KEY_ID, or CERT_SUBJECT.
// Sign Key Transformer.
XMLSignKeyInfoKeyNameTransformer *string `json:"xmlSignKeyInfoKeyNameTransformer,omitempty" tf:"xml_sign_key_info_key_name_transformer,omitempty"`
}
type IdentityProviderObservation struct {
// When true, new users will be able to read stored tokens. This will automatically assign the broker.read-token role. Defaults to false.
// Enable/disable if new users can read any stored tokens. This assigns the broker.read-token role.
AddReadTokenRoleOnCreate *bool `json:"addReadTokenRoleOnCreate,omitempty" tf:"add_read_token_role_on_create,omitempty"`
// The unique name of identity provider.
// The alias uniquely identifies an identity provider and it is also used to build the redirect uri.
Alias *string `json:"alias,omitempty" tf:"alias,omitempty"`
// Authenticate users by default. Defaults to false.
// Enable/disable authenticate users by default.
AuthenticateByDefault *bool `json:"authenticateByDefault,omitempty" tf:"authenticate_by_default,omitempty"`
// Ordered list of requested AuthnContext ClassRefs.
// AuthnContext ClassRefs
AuthnContextClassRefs []*string `json:"authnContextClassRefs,omitempty" tf:"authn_context_class_refs,omitempty"`
// Specifies the comparison method used to evaluate the requested context classes or statements.
// AuthnContext Comparison
AuthnContextComparisonType *string `json:"authnContextComparisonType,omitempty" tf:"authn_context_comparison_type,omitempty"`
// Ordered list of requested AuthnContext DeclRefs.
// AuthnContext DeclRefs
AuthnContextDeclRefs []*string `json:"authnContextDeclRefs,omitempty" tf:"authn_context_decl_refs,omitempty"`
// Does the external IDP support backchannel logout?. Defaults to false.
// Does the external IDP support backchannel logout?
BackchannelSupported *bool `json:"backchannelSupported,omitempty" tf:"backchannel_supported,omitempty"`
// The display name for the realm that is shown when logging in to the admin console.
// Friendly name for Identity Providers.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// When false, users and clients will not be able to access this realm. Defaults to true.
// Enable/disable this identity provider.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The Entity ID that will be used to uniquely identify this SAML Service Provider.
// The Entity ID that will be used to uniquely identify this SAML Service Provider.
EntityID *string `json:"entityId,omitempty" tf:"entity_id,omitempty"`
// A map of key/value pairs to add extra configuration to this identity provider. Use this attribute at your own risk, as custom attributes may conflict with top-level configuration attributes in future provider updates.
// +mapType=granular
ExtraConfig map[string]*string `json:"extraConfig,omitempty" tf:"extra_config,omitempty"`
// Alias of authentication flow, which is triggered after first login with this identity provider. Term 'First Login' means that there is not yet existing Keycloak account linked with the authenticated identity provider account. Defaults to first broker login.
// Alias of authentication flow, which is triggered after first login with this identity provider. Term 'First Login' means that there is not yet existing Keycloak account linked with the authenticated identity provider account.
FirstBrokerLoginFlowAlias *string `json:"firstBrokerLoginFlowAlias,omitempty" tf:"first_broker_login_flow_alias,omitempty"`
// Indicates whether the identity provider must authenticate the presenter directly rather than rely on a previous security context.
// Require Force Authn.
ForceAuthn *bool `json:"forceAuthn,omitempty" tf:"force_authn,omitempty"`
// A number defining the order of this identity provider in the GUI.
// GUI Order
GuiOrder *string `json:"guiOrder,omitempty" tf:"gui_order,omitempty"`
// If hidden, then login with this provider is possible only if requested explicitly, e.g. using the 'kc_idp_hint' parameter.
// Hide On Login Page.
HideOnLoginPage *bool `json:"hideOnLoginPage,omitempty" tf:"hide_on_login_page,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Internal Identity Provider Id
InternalID *string `json:"internalId,omitempty" tf:"internal_id,omitempty"`
// When true, users cannot login using this provider, but their existing accounts will be linked when possible. Defaults to false.
// If true, users cannot log in through this provider. They can only link to this provider. This is useful if you don't want to allow login from the provider, but want to integrate with a provider
LinkOnly *bool `json:"linkOnly,omitempty" tf:"link_only,omitempty"`
// Login Hint.
LoginHint *string `json:"loginHint,omitempty" tf:"login_hint,omitempty"`
// Specifies the URI reference corresponding to a name identifier format. Defaults to empty.
// Name ID Policy Format.
NameIDPolicyFormat *string `json:"nameIdPolicyFormat,omitempty" tf:"name_id_policy_format,omitempty"`
// Indicates whether the AuthnRequest must be sent using HTTP-POST binding. If false, HTTP-REDIRECT binding will be used.
// Post Binding Authn Request.
PostBindingAuthnRequest *bool `json:"postBindingAuthnRequest,omitempty" tf:"post_binding_authn_request,omitempty"`
// Indicates whether to respond to requests using HTTP-POST binding. If false, HTTP-REDIRECT binding will be used.
// Post Binding Logout.
PostBindingLogout *bool `json:"postBindingLogout,omitempty" tf:"post_binding_logout,omitempty"`
// Indicates whether to respond to requests using HTTP-POST binding. If false, HTTP-REDIRECT binding will be used..
// Post Binding Response.
PostBindingResponse *bool `json:"postBindingResponse,omitempty" tf:"post_binding_response,omitempty"`
// Alias of authentication flow, which is triggered after each login with this identity provider. Useful if you want additional verification of each user authenticated with this identity provider (for example OTP). Leave this empty if you don't want any additional authenticators to be triggered after login with this identity provider. Also note, that authenticator implementations must assume that user is already set in ClientSession as identity provider already set it. Defaults to empty.
// Alias of authentication flow, which is triggered after each login with this identity provider. Useful if you want additional verification of each user authenticated with this identity provider (for example OTP). Leave this empty if you don't want any additional authenticators to be triggered after login with this identity provider. Also note, that authenticator implementations must assume that user is already set in ClientSession as identity provider already set it.
PostBrokerLoginFlowAlias *string `json:"postBrokerLoginFlowAlias,omitempty" tf:"post_broker_login_flow_alias,omitempty"`
// The principal attribute.
// Principal Attribute
PrincipalAttribute *string `json:"principalAttribute,omitempty" tf:"principal_attribute,omitempty"`
// The principal type. Can be one of SUBJECT, ATTRIBUTE or FRIENDLY_ATTRIBUTE.
// Principal Type
PrincipalType *string `json:"principalType,omitempty" tf:"principal_type,omitempty"`
// The ID of the identity provider to use. Defaults to saml, which should be used unless you have extended Keycloak and provided your own implementation.
// provider id, is always saml, unless you have a custom implementation
ProviderID *string `json:"providerId,omitempty" tf:"provider_id,omitempty"`
// The name of the realm. This is unique across Keycloak.
// Realm Name
Realm *string `json:"realm,omitempty" tf:"realm,omitempty"`
// Signing Algorithm. Defaults to empty.
// Signing Algorithm.
SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" tf:"signature_algorithm,omitempty"`
// Signing Certificate.
// Signing Certificate.
SigningCertificate *string `json:"signingCertificate,omitempty" tf:"signing_certificate,omitempty"`
// The Url that must be used to send logout requests.
// Logout URL.
SingleLogoutServiceURL *string `json:"singleLogoutServiceUrl,omitempty" tf:"single_logout_service_url,omitempty"`
// The Url that must be used to send authentication requests (SAML AuthnRequest).
// SSO Logout URL.
SingleSignOnServiceURL *string `json:"singleSignOnServiceUrl,omitempty" tf:"single_sign_on_service_url,omitempty"`
// When true, tokens will be stored after authenticating users. Defaults to true.
// Enable/disable if tokens must be stored after authenticating users.
StoreToken *bool `json:"storeToken,omitempty" tf:"store_token,omitempty"`
// The default sync mode to use for all mappers attached to this identity provider. Can be one of IMPORT, FORCE, or LEGACY.
// Sync Mode
SyncMode *string `json:"syncMode,omitempty" tf:"sync_mode,omitempty"`
// When true, email addresses for users in this provider will automatically be verified regardless of the realm's email verification policy. Defaults to false.
// If enabled then email provided by this provider is not verified even if verification is enabled for the realm.
TrustEmail *bool `json:"trustEmail,omitempty" tf:"trust_email,omitempty"`
// Enable/disable signature validation of SAML responses.
// Enable/disable signature validation of SAML responses.
ValidateSignature *bool `json:"validateSignature,omitempty" tf:"validate_signature,omitempty"`
// Indicates whether this service provider expects an encrypted Assertion.
// Want Assertions Encrypted.
WantAssertionsEncrypted *bool `json:"wantAssertionsEncrypted,omitempty" tf:"want_assertions_encrypted,omitempty"`
// Indicates whether this service provider expects a signed Assertion.
// Want Assertions Signed.
WantAssertionsSigned *bool `json:"wantAssertionsSigned,omitempty" tf:"want_assertions_signed,omitempty"`
// The SAML signature key name. Can be one of NONE, KEY_ID, or CERT_SUBJECT.
// Sign Key Transformer.
XMLSignKeyInfoKeyNameTransformer *string `json:"xmlSignKeyInfoKeyNameTransformer,omitempty" tf:"xml_sign_key_info_key_name_transformer,omitempty"`
}
type IdentityProviderParameters struct {
// When true, new users will be able to read stored tokens. This will automatically assign the broker.read-token role. Defaults to false.
// Enable/disable if new users can read any stored tokens. This assigns the broker.read-token role.
// +kubebuilder:validation:Optional
AddReadTokenRoleOnCreate *bool `json:"addReadTokenRoleOnCreate,omitempty" tf:"add_read_token_role_on_create,omitempty"`
// The unique name of identity provider.
// The alias uniquely identifies an identity provider and it is also used to build the redirect uri.
// +kubebuilder:validation:Optional
Alias *string `json:"alias,omitempty" tf:"alias,omitempty"`
// Authenticate users by default. Defaults to false.
// Enable/disable authenticate users by default.
// +kubebuilder:validation:Optional
AuthenticateByDefault *bool `json:"authenticateByDefault,omitempty" tf:"authenticate_by_default,omitempty"`
// Ordered list of requested AuthnContext ClassRefs.
// AuthnContext ClassRefs
// +kubebuilder:validation:Optional
AuthnContextClassRefs []*string `json:"authnContextClassRefs,omitempty" tf:"authn_context_class_refs,omitempty"`
// Specifies the comparison method used to evaluate the requested context classes or statements.
// AuthnContext Comparison
// +kubebuilder:validation:Optional
AuthnContextComparisonType *string `json:"authnContextComparisonType,omitempty" tf:"authn_context_comparison_type,omitempty"`
// Ordered list of requested AuthnContext DeclRefs.
// AuthnContext DeclRefs
// +kubebuilder:validation:Optional
AuthnContextDeclRefs []*string `json:"authnContextDeclRefs,omitempty" tf:"authn_context_decl_refs,omitempty"`
// Does the external IDP support backchannel logout?. Defaults to false.
// Does the external IDP support backchannel logout?
// +kubebuilder:validation:Optional
BackchannelSupported *bool `json:"backchannelSupported,omitempty" tf:"backchannel_supported,omitempty"`
// The display name for the realm that is shown when logging in to the admin console.
// Friendly name for Identity Providers.
// +kubebuilder:validation:Optional
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// When false, users and clients will not be able to access this realm. Defaults to true.
// Enable/disable this identity provider.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The Entity ID that will be used to uniquely identify this SAML Service Provider.
// The Entity ID that will be used to uniquely identify this SAML Service Provider.
// +kubebuilder:validation:Optional
EntityID *string `json:"entityId,omitempty" tf:"entity_id,omitempty"`
// A map of key/value pairs to add extra configuration to this identity provider. Use this attribute at your own risk, as custom attributes may conflict with top-level configuration attributes in future provider updates.
// +kubebuilder:validation:Optional
// +mapType=granular
ExtraConfig map[string]*string `json:"extraConfig,omitempty" tf:"extra_config,omitempty"`
// Alias of authentication flow, which is triggered after first login with this identity provider. Term 'First Login' means that there is not yet existing Keycloak account linked with the authenticated identity provider account. Defaults to first broker login.
// Alias of authentication flow, which is triggered after first login with this identity provider. Term 'First Login' means that there is not yet existing Keycloak account linked with the authenticated identity provider account.
// +kubebuilder:validation:Optional
FirstBrokerLoginFlowAlias *string `json:"firstBrokerLoginFlowAlias,omitempty" tf:"first_broker_login_flow_alias,omitempty"`
// Indicates whether the identity provider must authenticate the presenter directly rather than rely on a previous security context.
// Require Force Authn.
// +kubebuilder:validation:Optional
ForceAuthn *bool `json:"forceAuthn,omitempty" tf:"force_authn,omitempty"`
// A number defining the order of this identity provider in the GUI.
// GUI Order
// +kubebuilder:validation:Optional
GuiOrder *string `json:"guiOrder,omitempty" tf:"gui_order,omitempty"`
// If hidden, then login with this provider is possible only if requested explicitly, e.g. using the 'kc_idp_hint' parameter.
// Hide On Login Page.
// +kubebuilder:validation:Optional
HideOnLoginPage *bool `json:"hideOnLoginPage,omitempty" tf:"hide_on_login_page,omitempty"`
// When true, users cannot login using this provider, but their existing accounts will be linked when possible. Defaults to false.
// If true, users cannot log in through this provider. They can only link to this provider. This is useful if you don't want to allow login from the provider, but want to integrate with a provider
// +kubebuilder:validation:Optional
LinkOnly *bool `json:"linkOnly,omitempty" tf:"link_only,omitempty"`
// Login Hint.
// +kubebuilder:validation:Optional
LoginHint *string `json:"loginHint,omitempty" tf:"login_hint,omitempty"`
// Specifies the URI reference corresponding to a name identifier format. Defaults to empty.
// Name ID Policy Format.
// +kubebuilder:validation:Optional
NameIDPolicyFormat *string `json:"nameIdPolicyFormat,omitempty" tf:"name_id_policy_format,omitempty"`
// Indicates whether the AuthnRequest must be sent using HTTP-POST binding. If false, HTTP-REDIRECT binding will be used.
// Post Binding Authn Request.
// +kubebuilder:validation:Optional
PostBindingAuthnRequest *bool `json:"postBindingAuthnRequest,omitempty" tf:"post_binding_authn_request,omitempty"`
// Indicates whether to respond to requests using HTTP-POST binding. If false, HTTP-REDIRECT binding will be used.
// Post Binding Logout.
// +kubebuilder:validation:Optional
PostBindingLogout *bool `json:"postBindingLogout,omitempty" tf:"post_binding_logout,omitempty"`
// Indicates whether to respond to requests using HTTP-POST binding. If false, HTTP-REDIRECT binding will be used..
// Post Binding Response.
// +kubebuilder:validation:Optional
PostBindingResponse *bool `json:"postBindingResponse,omitempty" tf:"post_binding_response,omitempty"`
// Alias of authentication flow, which is triggered after each login with this identity provider. Useful if you want additional verification of each user authenticated with this identity provider (for example OTP). Leave this empty if you don't want any additional authenticators to be triggered after login with this identity provider. Also note, that authenticator implementations must assume that user is already set in ClientSession as identity provider already set it. Defaults to empty.
// Alias of authentication flow, which is triggered after each login with this identity provider. Useful if you want additional verification of each user authenticated with this identity provider (for example OTP). Leave this empty if you don't want any additional authenticators to be triggered after login with this identity provider. Also note, that authenticator implementations must assume that user is already set in ClientSession as identity provider already set it.
// +kubebuilder:validation:Optional
PostBrokerLoginFlowAlias *string `json:"postBrokerLoginFlowAlias,omitempty" tf:"post_broker_login_flow_alias,omitempty"`
// The principal attribute.
// Principal Attribute
// +kubebuilder:validation:Optional
PrincipalAttribute *string `json:"principalAttribute,omitempty" tf:"principal_attribute,omitempty"`
// The principal type. Can be one of SUBJECT, ATTRIBUTE or FRIENDLY_ATTRIBUTE.
// Principal Type
// +kubebuilder:validation:Optional
PrincipalType *string `json:"principalType,omitempty" tf:"principal_type,omitempty"`
// The ID of the identity provider to use. Defaults to saml, which should be used unless you have extended Keycloak and provided your own implementation.
// provider id, is always saml, unless you have a custom implementation
// +kubebuilder:validation:Optional
ProviderID *string `json:"providerId,omitempty" tf:"provider_id,omitempty"`
// The name of the realm. This is unique across Keycloak.
// Realm Name
// +crossplane:generate:reference:type=github.com/stakater/provider-keycloak/apis/realm/v1alpha1.Realm
// +kubebuilder:validation:Optional
Realm *string `json:"realm,omitempty" tf:"realm,omitempty"`
// Reference to a Realm in realm to populate realm.
// +kubebuilder:validation:Optional
RealmRef *v1.Reference `json:"realmRef,omitempty" tf:"-"`
// Selector for a Realm in realm to populate realm.
// +kubebuilder:validation:Optional
RealmSelector *v1.Selector `json:"realmSelector,omitempty" tf:"-"`
// Signing Algorithm. Defaults to empty.
// Signing Algorithm.
// +kubebuilder:validation:Optional
SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" tf:"signature_algorithm,omitempty"`
// Signing Certificate.
// Signing Certificate.
// +kubebuilder:validation:Optional
SigningCertificate *string `json:"signingCertificate,omitempty" tf:"signing_certificate,omitempty"`
// The Url that must be used to send logout requests.
// Logout URL.
// +kubebuilder:validation:Optional
SingleLogoutServiceURL *string `json:"singleLogoutServiceUrl,omitempty" tf:"single_logout_service_url,omitempty"`
// The Url that must be used to send authentication requests (SAML AuthnRequest).
// SSO Logout URL.
// +kubebuilder:validation:Optional
SingleSignOnServiceURL *string `json:"singleSignOnServiceUrl,omitempty" tf:"single_sign_on_service_url,omitempty"`
// When true, tokens will be stored after authenticating users. Defaults to true.
// Enable/disable if tokens must be stored after authenticating users.
// +kubebuilder:validation:Optional
StoreToken *bool `json:"storeToken,omitempty" tf:"store_token,omitempty"`
// The default sync mode to use for all mappers attached to this identity provider. Can be one of IMPORT, FORCE, or LEGACY.
// Sync Mode
// +kubebuilder:validation:Optional
SyncMode *string `json:"syncMode,omitempty" tf:"sync_mode,omitempty"`
// When true, email addresses for users in this provider will automatically be verified regardless of the realm's email verification policy. Defaults to false.
// If enabled then email provided by this provider is not verified even if verification is enabled for the realm.
// +kubebuilder:validation:Optional
TrustEmail *bool `json:"trustEmail,omitempty" tf:"trust_email,omitempty"`
// Enable/disable signature validation of SAML responses.
// Enable/disable signature validation of SAML responses.
// +kubebuilder:validation:Optional
ValidateSignature *bool `json:"validateSignature,omitempty" tf:"validate_signature,omitempty"`
// Indicates whether this service provider expects an encrypted Assertion.
// Want Assertions Encrypted.
// +kubebuilder:validation:Optional
WantAssertionsEncrypted *bool `json:"wantAssertionsEncrypted,omitempty" tf:"want_assertions_encrypted,omitempty"`
// Indicates whether this service provider expects a signed Assertion.
// Want Assertions Signed.
// +kubebuilder:validation:Optional
WantAssertionsSigned *bool `json:"wantAssertionsSigned,omitempty" tf:"want_assertions_signed,omitempty"`
// The SAML signature key name. Can be one of NONE, KEY_ID, or CERT_SUBJECT.
// Sign Key Transformer.
// +kubebuilder:validation:Optional
XMLSignKeyInfoKeyNameTransformer *string `json:"xmlSignKeyInfoKeyNameTransformer,omitempty" tf:"xml_sign_key_info_key_name_transformer,omitempty"`
}
// IdentityProviderSpec defines the desired state of IdentityProvider
type IdentityProviderSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider IdentityProviderParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider IdentityProviderInitParameters `json:"initProvider,omitempty"`
}
// IdentityProviderStatus defines the observed state of IdentityProvider.
type IdentityProviderStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider IdentityProviderObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// IdentityProvider is the Schema for the IdentityProviders API.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,keycloak}
type IdentityProvider struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.alias) || (has(self.initProvider) && has(self.initProvider.alias))",message="spec.forProvider.alias is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.entityId) || (has(self.initProvider) && has(self.initProvider.entityId))",message="spec.forProvider.entityId is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.singleSignOnServiceUrl) || (has(self.initProvider) && has(self.initProvider.singleSignOnServiceUrl))",message="spec.forProvider.singleSignOnServiceUrl is a required parameter"
Spec IdentityProviderSpec `json:"spec"`
Status IdentityProviderStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// IdentityProviderList contains a list of IdentityProviders
type IdentityProviderList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []IdentityProvider `json:"items"`
}
// Repository type metadata.
var (
IdentityProvider_Kind = "IdentityProvider"
IdentityProvider_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: IdentityProvider_Kind}.String()
IdentityProvider_KindAPIVersion = IdentityProvider_Kind + "." + CRDGroupVersion.String()
IdentityProvider_GroupVersionKind = CRDGroupVersion.WithKind(IdentityProvider_Kind)
)
func init() {
SchemeBuilder.Register(&IdentityProvider{}, &IdentityProviderList{})
}