-
Notifications
You must be signed in to change notification settings - Fork 80
/
identity_provider.go
1034 lines (918 loc) · 41 KB
/
identity_provider.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 (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// Identity Domains API
//
// Use the Identity Domains API to manage resources within an identity domain, for example, users, dynamic resource groups, groups, and identity providers. For information about managing resources within identity domains, see Identity and Access Management (with identity domains) (https://docs.oracle.com/iaas/Content/Identity/home.htm). This REST API is SCIM compliant.
// Use the table of contents and search tool to explore the Identity Domains API.
//
package identitydomains
import (
"fmt"
"github.com/oracle/oci-go-sdk/v65/common"
"strings"
)
// IdentityProvider Federation trusted partner Identity Provider
type IdentityProvider struct {
// REQUIRED. The schemas attribute is an array of Strings which allows introspection of the supported schema version for a SCIM representation as well any schema extensions supported by that representation. Each String value must be a unique URI. This specification defines URIs for User, Group, and a standard \"enterprise\" extension. All representations of SCIM schema MUST include a non-zero value array with value(s) of the URIs supported by that representation. Duplicate values MUST NOT be included. Value order is not specified and MUST not impact behavior.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: true
// - mutability: readWrite
// - required: true
// - returned: default
// - type: string
// - uniqueness: none
Schemas []string `mandatory:"true" json:"schemas"`
// Unique name of the trusted Identity Provider.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: true
// - returned: always
// - type: string
// - uniqueness: server
PartnerName *string `mandatory:"true" json:"partnerName"`
// Set to true to indicate Partner enabled.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: true
// - returned: default
// - type: boolean
// - uniqueness: none
Enabled *bool `mandatory:"true" json:"enabled"`
// Unique identifier for the SCIM Resource as defined by the Service Provider. Each representation of the Resource MUST include a non-empty id value. This identifier MUST be unique across the Service Provider's entire set of Resources. It MUST be a stable, non-reassignable identifier that does not change when the same Resource is returned in subsequent requests. The value of the id attribute is always issued by the Service Provider and MUST never be specified by the Service Consumer. bulkId: is a reserved keyword and MUST NOT be used in the unique identifier.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readOnly
// - required: false
// - returned: always
// - type: string
// - uniqueness: global
Id *string `mandatory:"false" json:"id"`
// Unique OCI identifier for the SCIM Resource.
// **SCIM++ Properties:**
// - caseExact: true
// - idcsSearchable: true
// - multiValued: false
// - mutability: immutable
// - required: false
// - returned: default
// - type: string
// - uniqueness: global
Ocid *string `mandatory:"false" json:"ocid"`
Meta *Meta `mandatory:"false" json:"meta"`
IdcsCreatedBy *IdcsCreatedBy `mandatory:"false" json:"idcsCreatedBy"`
IdcsLastModifiedBy *IdcsLastModifiedBy `mandatory:"false" json:"idcsLastModifiedBy"`
// Each value of this attribute specifies an operation that only an internal client may perform on this particular resource.
// **SCIM++ Properties:**
// - idcsSearchable: false
// - multiValued: true
// - mutability: readOnly
// - required: false
// - returned: request
// - type: string
// - uniqueness: none
IdcsPreventedOperations []IdcsPreventedOperationsEnum `mandatory:"false" json:"idcsPreventedOperations,omitempty"`
// A list of tags on this resource.
// **SCIM++ Properties:**
// - idcsCompositeKey: [key, value]
// - idcsSearchable: true
// - multiValued: true
// - mutability: readWrite
// - required: false
// - returned: request
// - type: complex
// - uniqueness: none
Tags []Tags `mandatory:"false" json:"tags"`
// A boolean flag indicating this resource in the process of being deleted. Usually set to true when synchronous deletion of the resource would take too long.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readOnly
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
DeleteInProgress *bool `mandatory:"false" json:"deleteInProgress"`
// The release number when the resource was upgraded.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readOnly
// - required: false
// - returned: request
// - type: string
// - uniqueness: none
IdcsLastUpgradedInRelease *string `mandatory:"false" json:"idcsLastUpgradedInRelease"`
// OCI Domain Id (ocid) in which the resource lives.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readOnly
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
DomainOcid *string `mandatory:"false" json:"domainOcid"`
// OCI Compartment Id (ocid) in which the resource lives.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readOnly
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
CompartmentOcid *string `mandatory:"false" json:"compartmentOcid"`
// OCI Tenant Id (ocid) in which the resource lives.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readOnly
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
TenancyOcid *string `mandatory:"false" json:"tenancyOcid"`
// An identifier for the Resource as defined by the Service Consumer. The externalId may simplify identification of the Resource between Service Consumer and Service Provider by allowing the Consumer to refer to the Resource with its own identifier, obviating the need to store a local mapping between the local identifier of the Resource and the identifier used by the Service Provider. Each Resource MAY include a non-empty externalId value. The value of the externalId attribute is always issued by the Service Consumer and can never be specified by the Service Provider. The Service Provider MUST always interpret the externalId as scoped to the Service Consumer's tenant.
// **SCIM++ Properties:**
// - caseExact: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
ExternalId *string `mandatory:"false" json:"externalId"`
// Description
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
Description *string `mandatory:"false" json:"description"`
// Metadata
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
Metadata *string `mandatory:"false" json:"metadata"`
// Provider ID
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: server
PartnerProviderId *string `mandatory:"false" json:"partnerProviderId"`
// The alternate Provider ID to be used as the Oracle Identity Cloud Service providerID (instead of the one in SamlSettings) when interacting with this IdP.
// **Added In:** 19.2.1
// **SCIM++ Properties:**
// - caseExact: true
// - idcsSearchable: false
// - multiValued: false
// - mutability: readOnly
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
TenantProviderId *string `mandatory:"false" json:"tenantProviderId"`
// Succinct ID
// **SCIM++ Properties:**
// - caseExact: true
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: server
SuccinctId *string `mandatory:"false" json:"succinctId"`
// Identity Provider SSO URL
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
IdpSsoUrl *string `mandatory:"false" json:"idpSsoUrl"`
// Logout request URL
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
LogoutRequestUrl *string `mandatory:"false" json:"logoutRequestUrl"`
// Logout response URL
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
LogoutResponseUrl *string `mandatory:"false" json:"logoutResponseUrl"`
// Signing certificate
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
SigningCertificate *string `mandatory:"false" json:"signingCertificate"`
// Encryption certificate
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
EncryptionCertificate *string `mandatory:"false" json:"encryptionCertificate"`
// Default authentication request name ID format.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
NameIdFormat *string `mandatory:"false" json:"nameIdFormat"`
// Set to true to include the signing certificate in the signature.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
IncludeSigningCertInSignature *bool `mandatory:"false" json:"includeSigningCertInSignature"`
// HTTP binding to use for authentication requests.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
AuthnRequestBinding IdentityProviderAuthnRequestBindingEnum `mandatory:"false" json:"authnRequestBinding,omitempty"`
// HTTP binding to use for logout.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
LogoutBinding IdentityProviderLogoutBindingEnum `mandatory:"false" json:"logoutBinding,omitempty"`
// Set to true to enable logout.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
LogoutEnabled *bool `mandatory:"false" json:"logoutEnabled"`
// Signature hash algorithm.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
SignatureHashAlgorithm IdentityProviderSignatureHashAlgorithmEnum `mandatory:"false" json:"signatureHashAlgorithm,omitempty"`
// Identity Provider Icon URL.
// **SCIM++ Properties:**
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
IconUrl *string `mandatory:"false" json:"iconUrl"`
// Set to true to indicate whether to show IdP in login page or not.
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
ShownOnLoginPage *bool `mandatory:"false" json:"shownOnLoginPage"`
// Set to true to indicate JIT User Provisioning is enabled
// **Added In:** 20.1.3
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
JitUserProvEnabled *bool `mandatory:"false" json:"jitUserProvEnabled"`
// Set to true to indicate JIT User Provisioning Groups should be assigned based on assertion attribute
// **Added In:** 20.1.3
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
JitUserProvGroupAssertionAttributeEnabled *bool `mandatory:"false" json:"jitUserProvGroupAssertionAttributeEnabled"`
// Set to true to indicate JIT User Provisioning Groups should be assigned from a static list
// **Added In:** 20.1.3
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
JitUserProvGroupStaticListEnabled *bool `mandatory:"false" json:"jitUserProvGroupStaticListEnabled"`
// Set to true to indicate JIT User Creation is enabled
// **Added In:** 20.1.3
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
JitUserProvCreateUserEnabled *bool `mandatory:"false" json:"jitUserProvCreateUserEnabled"`
// Set to true to indicate JIT User Creation is enabled
// **Added In:** 20.1.3
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
JitUserProvAttributeUpdateEnabled *bool `mandatory:"false" json:"jitUserProvAttributeUpdateEnabled"`
// The default value is 'Overwrite', which tells Just-In-Time user-provisioning to replace any current group-assignments for a User with those assigned by assertions and/or those assigned statically. Specify 'Merge' if you want Just-In-Time user-provisioning to combine its group-assignments with those the user already has.
// **Added In:** 20.1.3
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
JitUserProvGroupAssignmentMethod IdentityProviderJitUserProvGroupAssignmentMethodEnum `mandatory:"false" json:"jitUserProvGroupAssignmentMethod,omitempty"`
// Property to indicate the mode of group mapping
// **Added In:** 2205120021
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
JitUserProvGroupMappingMode IdentityProviderJitUserProvGroupMappingModeEnum `mandatory:"false" json:"jitUserProvGroupMappingMode,omitempty"`
// Name of the assertion attribute containing the users groups
// **Added In:** 20.1.3
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
JitUserProvGroupSAMLAttributeName *string `mandatory:"false" json:"jitUserProvGroupSAMLAttributeName"`
// The serviceInstanceIdentifier of the App that hosts this IdP. This value will match the opcServiceInstanceGUID of any service-instance that the IdP represents.
// **Added In:** 18.2.6
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: never
// - type: string
// - uniqueness: server
ServiceInstanceIdentifier *string `mandatory:"false" json:"serviceInstanceIdentifier"`
// User mapping method.
// **Deprecated Since: 20.1.3**
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
// - idcsValuePersistedInOtherAttribute: true
UserMappingMethod IdentityProviderUserMappingMethodEnum `mandatory:"false" json:"userMappingMethod,omitempty"`
// This property specifies the userstore attribute value that must match the incoming assertion attribute value or the incoming nameid attribute value in order to identify the user during SSO.<br>You can construct the userMappingStoreAttribute value by specifying attributes from the Oracle Identity Cloud Service Core Users schema. For examples of how to construct the userMappingStoreAttribute value, see the <b>Example of a Request Body</b> section of the Examples tab for the <a href='./op-admin-v1-identityproviders-post.html'>POST</a> and <a href='./op-admin-v1-identityproviders-id-put.html'>PUT</a> methods of the /IdentityProviders endpoint.
// **Deprecated Since: 20.1.3**
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
// - idcsValuePersistedInOtherAttribute: true
UserMappingStoreAttribute *string `mandatory:"false" json:"userMappingStoreAttribute"`
// Assertion attribute name.
// **Deprecated Since: 20.1.3**
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
// - idcsValuePersistedInOtherAttribute: true
AssertionAttribute *string `mandatory:"false" json:"assertionAttribute"`
// Identity Provider Type
// **Added In:** 20.1.3
// **SCIM++ Properties:**
// - caseExact: true
// - idcsSearchable: true
// - multiValued: false
// - mutability: immutable
// - required: false
// - returned: always
// - type: string
// - uniqueness: none
Type IdentityProviderTypeEnum `mandatory:"false" json:"type,omitempty"`
// This SP requires requests SAML IdP to enforce re-authentication.
// **Added In:** 2102181953
// **SCIM++ Properties:**
// - caseExact: true
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
RequireForceAuthn *bool `mandatory:"false" json:"requireForceAuthn"`
// SAML SP must accept encrypted assertion only.
// **Added In:** 2102181953
// **SCIM++ Properties:**
// - caseExact: true
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
RequiresEncryptedAssertion *bool `mandatory:"false" json:"requiresEncryptedAssertion"`
// SAML SP HoK Enabled.
// **Added In:** 2102181953
// **SCIM++ Properties:**
// - caseExact: true
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
SamlHoKRequired *bool `mandatory:"false" json:"samlHoKRequired"`
// SAML SP authentication type.
// **Added In:** 2102181953
// **SCIM++ Properties:**
// - caseExact: true
// - idcsSearchable: false
// - multiValued: true
// - mutability: readWrite
// - required: false
// - returned: default
// - type: string
// - uniqueness: none
RequestedAuthenticationContext []string `mandatory:"false" json:"requestedAuthenticationContext"`
// Set to true to indicate ignoring absence of group while provisioning
// **Added In:** 2111112015
// **SCIM++ Properties:**
// - caseExact: false
// - idcsAddedSinceVersion: 30
// - idcsSearchable: false
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
JitUserProvIgnoreErrorOnAbsentGroups *bool `mandatory:"false" json:"jitUserProvIgnoreErrorOnAbsentGroups"`
// Records the notification timestamp for the IdP whose signing certificate is about to expire
// **Added In:** 2302092332
// **SCIM++ Properties:**
// - caseExact: false
// - idcsSearchable: false
// - multiValued: false
// - mutability: readOnly
// - required: false
// - returned: default
// - type: dateTime
// - uniqueness: none
LastNotificationSentTime *string `mandatory:"false" json:"lastNotificationSentTime"`
// The list of mappings between the Identity Domain Group and the IDP group.
// **Added In:** 2205120021
// **SCIM++ Properties:**
// - idcsCompositeKey: [idpGroup]
// - multiValued: true
// - mutability: readWrite
// - required: false
// - returned: default
// - type: complex
// - uniqueness: none
JitUserProvGroupMappings []IdentityProviderJitUserProvGroupMappings `mandatory:"false" json:"jitUserProvGroupMappings"`
JitUserProvAttributes *IdentityProviderJitUserProvAttributes `mandatory:"false" json:"jitUserProvAttributes"`
// Refers to every group of which a JIT-provisioned User should be a member. Just-in-Time user-provisioning applies this static list when jitUserProvGroupStaticListEnabled:true.
// **Added In:** 20.1.3
// **SCIM++ Properties:**
// - idcsCompositeKey: [value]
// - idcsSearchable: false
// - multiValued: true
// - mutability: readWrite
// - required: false
// - returned: default
// - type: complex
// - uniqueness: none
JitUserProvAssignedGroups []IdentityProviderJitUserProvAssignedGroups `mandatory:"false" json:"jitUserProvAssignedGroups"`
CorrelationPolicy *IdentityProviderCorrelationPolicy `mandatory:"false" json:"correlationPolicy"`
UrnIetfParamsScimSchemasOracleIdcsExtensionSocialIdentityProvider *ExtensionSocialIdentityProvider `mandatory:"false" json:"urn:ietf:params:scim:schemas:oracle:idcs:extension:social:IdentityProvider"`
UrnIetfParamsScimSchemasOracleIdcsExtensionX509IdentityProvider *ExtensionX509IdentityProvider `mandatory:"false" json:"urn:ietf:params:scim:schemas:oracle:idcs:extension:x509:IdentityProvider"`
}
func (m IdentityProvider) String() string {
return common.PointerString(m)
}
// ValidateEnumValue returns an error when providing an unsupported enum value
// This function is being called during constructing API request process
// Not recommended for calling this function directly
func (m IdentityProvider) ValidateEnumValue() (bool, error) {
errMessage := []string{}
for _, val := range m.IdcsPreventedOperations {
if _, ok := GetMappingIdcsPreventedOperationsEnum(string(val)); !ok && val != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IdcsPreventedOperations: %s. Supported values are: %s.", val, strings.Join(GetIdcsPreventedOperationsEnumStringValues(), ",")))
}
}
if _, ok := GetMappingIdentityProviderAuthnRequestBindingEnum(string(m.AuthnRequestBinding)); !ok && m.AuthnRequestBinding != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuthnRequestBinding: %s. Supported values are: %s.", m.AuthnRequestBinding, strings.Join(GetIdentityProviderAuthnRequestBindingEnumStringValues(), ",")))
}
if _, ok := GetMappingIdentityProviderLogoutBindingEnum(string(m.LogoutBinding)); !ok && m.LogoutBinding != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LogoutBinding: %s. Supported values are: %s.", m.LogoutBinding, strings.Join(GetIdentityProviderLogoutBindingEnumStringValues(), ",")))
}
if _, ok := GetMappingIdentityProviderSignatureHashAlgorithmEnum(string(m.SignatureHashAlgorithm)); !ok && m.SignatureHashAlgorithm != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SignatureHashAlgorithm: %s. Supported values are: %s.", m.SignatureHashAlgorithm, strings.Join(GetIdentityProviderSignatureHashAlgorithmEnumStringValues(), ",")))
}
if _, ok := GetMappingIdentityProviderJitUserProvGroupAssignmentMethodEnum(string(m.JitUserProvGroupAssignmentMethod)); !ok && m.JitUserProvGroupAssignmentMethod != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for JitUserProvGroupAssignmentMethod: %s. Supported values are: %s.", m.JitUserProvGroupAssignmentMethod, strings.Join(GetIdentityProviderJitUserProvGroupAssignmentMethodEnumStringValues(), ",")))
}
if _, ok := GetMappingIdentityProviderJitUserProvGroupMappingModeEnum(string(m.JitUserProvGroupMappingMode)); !ok && m.JitUserProvGroupMappingMode != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for JitUserProvGroupMappingMode: %s. Supported values are: %s.", m.JitUserProvGroupMappingMode, strings.Join(GetIdentityProviderJitUserProvGroupMappingModeEnumStringValues(), ",")))
}
if _, ok := GetMappingIdentityProviderUserMappingMethodEnum(string(m.UserMappingMethod)); !ok && m.UserMappingMethod != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UserMappingMethod: %s. Supported values are: %s.", m.UserMappingMethod, strings.Join(GetIdentityProviderUserMappingMethodEnumStringValues(), ",")))
}
if _, ok := GetMappingIdentityProviderTypeEnum(string(m.Type)); !ok && m.Type != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetIdentityProviderTypeEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}
// IdentityProviderAuthnRequestBindingEnum Enum with underlying type: string
type IdentityProviderAuthnRequestBindingEnum string
// Set of constants representing the allowable values for IdentityProviderAuthnRequestBindingEnum
const (
IdentityProviderAuthnRequestBindingRedirect IdentityProviderAuthnRequestBindingEnum = "Redirect"
IdentityProviderAuthnRequestBindingPost IdentityProviderAuthnRequestBindingEnum = "Post"
)
var mappingIdentityProviderAuthnRequestBindingEnum = map[string]IdentityProviderAuthnRequestBindingEnum{
"Redirect": IdentityProviderAuthnRequestBindingRedirect,
"Post": IdentityProviderAuthnRequestBindingPost,
}
var mappingIdentityProviderAuthnRequestBindingEnumLowerCase = map[string]IdentityProviderAuthnRequestBindingEnum{
"redirect": IdentityProviderAuthnRequestBindingRedirect,
"post": IdentityProviderAuthnRequestBindingPost,
}
// GetIdentityProviderAuthnRequestBindingEnumValues Enumerates the set of values for IdentityProviderAuthnRequestBindingEnum
func GetIdentityProviderAuthnRequestBindingEnumValues() []IdentityProviderAuthnRequestBindingEnum {
values := make([]IdentityProviderAuthnRequestBindingEnum, 0)
for _, v := range mappingIdentityProviderAuthnRequestBindingEnum {
values = append(values, v)
}
return values
}
// GetIdentityProviderAuthnRequestBindingEnumStringValues Enumerates the set of values in String for IdentityProviderAuthnRequestBindingEnum
func GetIdentityProviderAuthnRequestBindingEnumStringValues() []string {
return []string{
"Redirect",
"Post",
}
}
// GetMappingIdentityProviderAuthnRequestBindingEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingIdentityProviderAuthnRequestBindingEnum(val string) (IdentityProviderAuthnRequestBindingEnum, bool) {
enum, ok := mappingIdentityProviderAuthnRequestBindingEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// IdentityProviderLogoutBindingEnum Enum with underlying type: string
type IdentityProviderLogoutBindingEnum string
// Set of constants representing the allowable values for IdentityProviderLogoutBindingEnum
const (
IdentityProviderLogoutBindingRedirect IdentityProviderLogoutBindingEnum = "Redirect"
IdentityProviderLogoutBindingPost IdentityProviderLogoutBindingEnum = "Post"
)
var mappingIdentityProviderLogoutBindingEnum = map[string]IdentityProviderLogoutBindingEnum{
"Redirect": IdentityProviderLogoutBindingRedirect,
"Post": IdentityProviderLogoutBindingPost,
}
var mappingIdentityProviderLogoutBindingEnumLowerCase = map[string]IdentityProviderLogoutBindingEnum{
"redirect": IdentityProviderLogoutBindingRedirect,
"post": IdentityProviderLogoutBindingPost,
}
// GetIdentityProviderLogoutBindingEnumValues Enumerates the set of values for IdentityProviderLogoutBindingEnum
func GetIdentityProviderLogoutBindingEnumValues() []IdentityProviderLogoutBindingEnum {
values := make([]IdentityProviderLogoutBindingEnum, 0)
for _, v := range mappingIdentityProviderLogoutBindingEnum {
values = append(values, v)
}
return values
}
// GetIdentityProviderLogoutBindingEnumStringValues Enumerates the set of values in String for IdentityProviderLogoutBindingEnum
func GetIdentityProviderLogoutBindingEnumStringValues() []string {
return []string{
"Redirect",
"Post",
}
}
// GetMappingIdentityProviderLogoutBindingEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingIdentityProviderLogoutBindingEnum(val string) (IdentityProviderLogoutBindingEnum, bool) {
enum, ok := mappingIdentityProviderLogoutBindingEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// IdentityProviderSignatureHashAlgorithmEnum Enum with underlying type: string
type IdentityProviderSignatureHashAlgorithmEnum string
// Set of constants representing the allowable values for IdentityProviderSignatureHashAlgorithmEnum
const (
IdentityProviderSignatureHashAlgorithm1 IdentityProviderSignatureHashAlgorithmEnum = "SHA-1"
IdentityProviderSignatureHashAlgorithm256 IdentityProviderSignatureHashAlgorithmEnum = "SHA-256"
)
var mappingIdentityProviderSignatureHashAlgorithmEnum = map[string]IdentityProviderSignatureHashAlgorithmEnum{
"SHA-1": IdentityProviderSignatureHashAlgorithm1,
"SHA-256": IdentityProviderSignatureHashAlgorithm256,
}
var mappingIdentityProviderSignatureHashAlgorithmEnumLowerCase = map[string]IdentityProviderSignatureHashAlgorithmEnum{
"sha-1": IdentityProviderSignatureHashAlgorithm1,
"sha-256": IdentityProviderSignatureHashAlgorithm256,
}
// GetIdentityProviderSignatureHashAlgorithmEnumValues Enumerates the set of values for IdentityProviderSignatureHashAlgorithmEnum
func GetIdentityProviderSignatureHashAlgorithmEnumValues() []IdentityProviderSignatureHashAlgorithmEnum {
values := make([]IdentityProviderSignatureHashAlgorithmEnum, 0)
for _, v := range mappingIdentityProviderSignatureHashAlgorithmEnum {
values = append(values, v)
}
return values
}
// GetIdentityProviderSignatureHashAlgorithmEnumStringValues Enumerates the set of values in String for IdentityProviderSignatureHashAlgorithmEnum
func GetIdentityProviderSignatureHashAlgorithmEnumStringValues() []string {
return []string{
"SHA-1",
"SHA-256",
}
}
// GetMappingIdentityProviderSignatureHashAlgorithmEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingIdentityProviderSignatureHashAlgorithmEnum(val string) (IdentityProviderSignatureHashAlgorithmEnum, bool) {
enum, ok := mappingIdentityProviderSignatureHashAlgorithmEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// IdentityProviderJitUserProvGroupAssignmentMethodEnum Enum with underlying type: string
type IdentityProviderJitUserProvGroupAssignmentMethodEnum string
// Set of constants representing the allowable values for IdentityProviderJitUserProvGroupAssignmentMethodEnum
const (
IdentityProviderJitUserProvGroupAssignmentMethodOverwrite IdentityProviderJitUserProvGroupAssignmentMethodEnum = "Overwrite"
IdentityProviderJitUserProvGroupAssignmentMethodMerge IdentityProviderJitUserProvGroupAssignmentMethodEnum = "Merge"
)
var mappingIdentityProviderJitUserProvGroupAssignmentMethodEnum = map[string]IdentityProviderJitUserProvGroupAssignmentMethodEnum{
"Overwrite": IdentityProviderJitUserProvGroupAssignmentMethodOverwrite,
"Merge": IdentityProviderJitUserProvGroupAssignmentMethodMerge,
}
var mappingIdentityProviderJitUserProvGroupAssignmentMethodEnumLowerCase = map[string]IdentityProviderJitUserProvGroupAssignmentMethodEnum{
"overwrite": IdentityProviderJitUserProvGroupAssignmentMethodOverwrite,
"merge": IdentityProviderJitUserProvGroupAssignmentMethodMerge,
}
// GetIdentityProviderJitUserProvGroupAssignmentMethodEnumValues Enumerates the set of values for IdentityProviderJitUserProvGroupAssignmentMethodEnum
func GetIdentityProviderJitUserProvGroupAssignmentMethodEnumValues() []IdentityProviderJitUserProvGroupAssignmentMethodEnum {
values := make([]IdentityProviderJitUserProvGroupAssignmentMethodEnum, 0)
for _, v := range mappingIdentityProviderJitUserProvGroupAssignmentMethodEnum {
values = append(values, v)
}
return values
}
// GetIdentityProviderJitUserProvGroupAssignmentMethodEnumStringValues Enumerates the set of values in String for IdentityProviderJitUserProvGroupAssignmentMethodEnum
func GetIdentityProviderJitUserProvGroupAssignmentMethodEnumStringValues() []string {
return []string{
"Overwrite",
"Merge",
}
}
// GetMappingIdentityProviderJitUserProvGroupAssignmentMethodEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingIdentityProviderJitUserProvGroupAssignmentMethodEnum(val string) (IdentityProviderJitUserProvGroupAssignmentMethodEnum, bool) {
enum, ok := mappingIdentityProviderJitUserProvGroupAssignmentMethodEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// IdentityProviderJitUserProvGroupMappingModeEnum Enum with underlying type: string
type IdentityProviderJitUserProvGroupMappingModeEnum string
// Set of constants representing the allowable values for IdentityProviderJitUserProvGroupMappingModeEnum
const (
IdentityProviderJitUserProvGroupMappingModeImplicit IdentityProviderJitUserProvGroupMappingModeEnum = "implicit"
IdentityProviderJitUserProvGroupMappingModeExplicit IdentityProviderJitUserProvGroupMappingModeEnum = "explicit"
)
var mappingIdentityProviderJitUserProvGroupMappingModeEnum = map[string]IdentityProviderJitUserProvGroupMappingModeEnum{
"implicit": IdentityProviderJitUserProvGroupMappingModeImplicit,
"explicit": IdentityProviderJitUserProvGroupMappingModeExplicit,
}
var mappingIdentityProviderJitUserProvGroupMappingModeEnumLowerCase = map[string]IdentityProviderJitUserProvGroupMappingModeEnum{
"implicit": IdentityProviderJitUserProvGroupMappingModeImplicit,
"explicit": IdentityProviderJitUserProvGroupMappingModeExplicit,
}
// GetIdentityProviderJitUserProvGroupMappingModeEnumValues Enumerates the set of values for IdentityProviderJitUserProvGroupMappingModeEnum
func GetIdentityProviderJitUserProvGroupMappingModeEnumValues() []IdentityProviderJitUserProvGroupMappingModeEnum {
values := make([]IdentityProviderJitUserProvGroupMappingModeEnum, 0)
for _, v := range mappingIdentityProviderJitUserProvGroupMappingModeEnum {
values = append(values, v)
}
return values
}
// GetIdentityProviderJitUserProvGroupMappingModeEnumStringValues Enumerates the set of values in String for IdentityProviderJitUserProvGroupMappingModeEnum
func GetIdentityProviderJitUserProvGroupMappingModeEnumStringValues() []string {
return []string{
"implicit",
"explicit",
}
}
// GetMappingIdentityProviderJitUserProvGroupMappingModeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingIdentityProviderJitUserProvGroupMappingModeEnum(val string) (IdentityProviderJitUserProvGroupMappingModeEnum, bool) {
enum, ok := mappingIdentityProviderJitUserProvGroupMappingModeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// IdentityProviderUserMappingMethodEnum Enum with underlying type: string
type IdentityProviderUserMappingMethodEnum string
// Set of constants representing the allowable values for IdentityProviderUserMappingMethodEnum
const (
IdentityProviderUserMappingMethodNameidtouserattribute IdentityProviderUserMappingMethodEnum = "NameIDToUserAttribute"
IdentityProviderUserMappingMethodAssertionattributetouserattribute IdentityProviderUserMappingMethodEnum = "AssertionAttributeToUserAttribute"
IdentityProviderUserMappingMethodCorrelationpolicyrule IdentityProviderUserMappingMethodEnum = "CorrelationPolicyRule"
)
var mappingIdentityProviderUserMappingMethodEnum = map[string]IdentityProviderUserMappingMethodEnum{
"NameIDToUserAttribute": IdentityProviderUserMappingMethodNameidtouserattribute,
"AssertionAttributeToUserAttribute": IdentityProviderUserMappingMethodAssertionattributetouserattribute,
"CorrelationPolicyRule": IdentityProviderUserMappingMethodCorrelationpolicyrule,
}
var mappingIdentityProviderUserMappingMethodEnumLowerCase = map[string]IdentityProviderUserMappingMethodEnum{
"nameidtouserattribute": IdentityProviderUserMappingMethodNameidtouserattribute,
"assertionattributetouserattribute": IdentityProviderUserMappingMethodAssertionattributetouserattribute,
"correlationpolicyrule": IdentityProviderUserMappingMethodCorrelationpolicyrule,
}
// GetIdentityProviderUserMappingMethodEnumValues Enumerates the set of values for IdentityProviderUserMappingMethodEnum
func GetIdentityProviderUserMappingMethodEnumValues() []IdentityProviderUserMappingMethodEnum {
values := make([]IdentityProviderUserMappingMethodEnum, 0)
for _, v := range mappingIdentityProviderUserMappingMethodEnum {
values = append(values, v)
}
return values
}
// GetIdentityProviderUserMappingMethodEnumStringValues Enumerates the set of values in String for IdentityProviderUserMappingMethodEnum
func GetIdentityProviderUserMappingMethodEnumStringValues() []string {
return []string{
"NameIDToUserAttribute",
"AssertionAttributeToUserAttribute",
"CorrelationPolicyRule",
}
}
// GetMappingIdentityProviderUserMappingMethodEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingIdentityProviderUserMappingMethodEnum(val string) (IdentityProviderUserMappingMethodEnum, bool) {
enum, ok := mappingIdentityProviderUserMappingMethodEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// IdentityProviderTypeEnum Enum with underlying type: string
type IdentityProviderTypeEnum string
// Set of constants representing the allowable values for IdentityProviderTypeEnum
const (
IdentityProviderTypeSaml IdentityProviderTypeEnum = "SAML"
IdentityProviderTypeSocial IdentityProviderTypeEnum = "SOCIAL"
IdentityProviderTypeIwa IdentityProviderTypeEnum = "IWA"
IdentityProviderTypeX509 IdentityProviderTypeEnum = "X509"
IdentityProviderTypeLocal IdentityProviderTypeEnum = "LOCAL"
)
var mappingIdentityProviderTypeEnum = map[string]IdentityProviderTypeEnum{
"SAML": IdentityProviderTypeSaml,
"SOCIAL": IdentityProviderTypeSocial,
"IWA": IdentityProviderTypeIwa,
"X509": IdentityProviderTypeX509,
"LOCAL": IdentityProviderTypeLocal,
}