-
Notifications
You must be signed in to change notification settings - Fork 80
/
my_authentication_factor_validator.go
709 lines (627 loc) · 29.7 KB
/
my_authentication_factor_validator.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
// 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"
)
// MyAuthenticationFactorValidator Validate any given Authentication Factor
type MyAuthenticationFactorValidator 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"`
// Authentication Factor which is being validated
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: true
// - mutability: readWrite
// - returned: default
// - uniqueness: none
// - idcsSearchable: false
AuthFactor MyAuthenticationFactorValidatorAuthFactorEnum `mandatory:"true" json:"authFactor"`
// Specifies whether the service is being used to enroll or validate a factor
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: true
// - mutability: readWrite
// - returned: default
// - uniqueness: none
// - idcsSearchable: false
Scenario MyAuthenticationFactorValidatorScenarioEnum `mandatory:"true" json:"scenario"`
// 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"`
// Request ID which is being validated
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: readWrite
// - returned: default
// - uniqueness: none
// - idcsSearchable: false
RequestId *string `mandatory:"false" json:"requestId"`
// The One Time Passcode which needs to be validated
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: readWrite
// - returned: never
// - uniqueness: none
// - idcsSensitive: encrypt
// - idcsSearchable: false
OtpCode *string `mandatory:"false" json:"otpCode"`
// Device id whose factor is being validated
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: readWrite
// - returned: default
// - uniqueness: none
// - idcsSearchable: false
DeviceId *string `mandatory:"false" json:"deviceId"`
// Validation status returned in the response
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: readOnly
// - returned: default
// - uniqueness: none
// - idcsSearchable: false
Status MyAuthenticationFactorValidatorStatusEnum `mandatory:"false" json:"status,omitempty"`
// User guid for whom the validation has initiated. Optional.
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: readWrite
// - returned: default
// - uniqueness: none
// - idcsSearchable: false
UserId *string `mandatory:"false" json:"userId"`
// User name for whom the validation has initiated
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: readWrite
// - returned: default
// - uniqueness: none
// - idcsSearchable: false
// - idcsPii: true
UserName *string `mandatory:"false" json:"userName"`
// Display name of the verified device
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: readWrite
// - returned: default
// - uniqueness: none
// - idcsSearchable: false
DisplayName *string `mandatory:"false" json:"displayName"`
// Validator message which is passed by the client. When it is a PUSH notification, it can be a rejection message.
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: readWrite
// - returned: default
// - uniqueness: none
// - idcsSearchable: false
Message *string `mandatory:"false" json:"message"`
// type indicating whether the flow is OIDC, SAML etc.,
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: default
// - uniqueness: none
Type MyAuthenticationFactorValidatorTypeEnum `mandatory:"false" json:"type,omitempty"`
// Indicates whether to update user preferred mfa factor or not
// **SCIM++ Properties:**
// - type: boolean
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
UpdateUserPreference *bool `mandatory:"false" json:"updateUserPreference"`
// Indicates whether to user passwordless factor to be updated or mfa factor to be updated
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
PreferenceType MyAuthenticationFactorValidatorPreferenceTypeEnum `mandatory:"false" json:"preferenceType,omitempty"`
// List of security questions the user has submitted to get authenticated.
// **SCIM++ Properties:**
// - type: complex
// - multiValued: true
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
// - idcsSearchable: false
SecurityQuestions []MyAuthenticationFactorValidatorSecurityQuestions `mandatory:"false" json:"securityQuestions"`
// Name of the client to be trusted
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
Name *string `mandatory:"false" json:"name"`
// Platform of the client to be trusted
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
Platform *string `mandatory:"false" json:"platform"`
// Location of the trusted client.
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
Location *string `mandatory:"false" json:"location"`
// Trusted token resource identifier.
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
TrustedTokenId *string `mandatory:"false" json:"trustedTokenId"`
// KMSI token resource identifier.
// **SCIM++ Properties:**
// - type: string
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
KmsiTokenId *string `mandatory:"false" json:"kmsiTokenId"`
// Sign-On Policy dictated allowed second factors.
// **SCIM++ Properties:**
// - type: string
// - multiValued: true
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
PolicyEnabledSecondFactors []string `mandatory:"false" json:"policyEnabledSecondFactors"`
// Indicates to create trust token.
// **SCIM++ Properties:**
// - type: boolean
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
CreateTrustedAgent *bool `mandatory:"false" json:"createTrustedAgent"`
// Indicates to create kmsi token.
// **SCIM++ Properties:**
// - type: boolean
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
CreateKmsiToken *bool `mandatory:"false" json:"createKmsiToken"`
// Flag indicates whether the factor is enrolled in account recovery. If the value is not provided or false, then it will be treated as MFA factor validation.
// **SCIM++ Properties:**
// - caseExact: true
// - idcsSearchable: true
// - multiValued: false
// - mutability: readWrite
// - required: false
// - returned: default
// - type: boolean
// - uniqueness: none
IsAccRecEnabled *bool `mandatory:"false" json:"isAccRecEnabled"`
// Sign-On Policy dictated validity duration for trusted client in Minutes.
// **SCIM++ Properties:**
// - type: integer
// - multiValued: false
// - required: false
// - mutability: writeOnly
// - returned: never
// - uniqueness: none
PolicyTrustedFrequencyMins *int `mandatory:"false" json:"policyTrustedFrequencyMins"`
ThirdPartyFactor *MyAuthenticationFactorValidatorThirdPartyFactor `mandatory:"false" json:"thirdPartyFactor"`
// Additional attributes which will be sent as part of a push notification
// **SCIM++ Properties:**
// - idcsSearchable: false
// - multiValued: true
// - mutability: readWrite
// - required: false
// - returned: default
// - type: complex
// - uniqueness: none
AdditionalAttributes []MyAuthenticationFactorValidatorAdditionalAttributes `mandatory:"false" json:"additionalAttributes"`
}
func (m MyAuthenticationFactorValidator) 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 MyAuthenticationFactorValidator) ValidateEnumValue() (bool, error) {
errMessage := []string{}
if _, ok := GetMappingMyAuthenticationFactorValidatorAuthFactorEnum(string(m.AuthFactor)); !ok && m.AuthFactor != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuthFactor: %s. Supported values are: %s.", m.AuthFactor, strings.Join(GetMyAuthenticationFactorValidatorAuthFactorEnumStringValues(), ",")))
}
if _, ok := GetMappingMyAuthenticationFactorValidatorScenarioEnum(string(m.Scenario)); !ok && m.Scenario != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Scenario: %s. Supported values are: %s.", m.Scenario, strings.Join(GetMyAuthenticationFactorValidatorScenarioEnumStringValues(), ",")))
}
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 := GetMappingMyAuthenticationFactorValidatorStatusEnum(string(m.Status)); !ok && m.Status != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetMyAuthenticationFactorValidatorStatusEnumStringValues(), ",")))
}
if _, ok := GetMappingMyAuthenticationFactorValidatorTypeEnum(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(GetMyAuthenticationFactorValidatorTypeEnumStringValues(), ",")))
}
if _, ok := GetMappingMyAuthenticationFactorValidatorPreferenceTypeEnum(string(m.PreferenceType)); !ok && m.PreferenceType != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PreferenceType: %s. Supported values are: %s.", m.PreferenceType, strings.Join(GetMyAuthenticationFactorValidatorPreferenceTypeEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}
// MyAuthenticationFactorValidatorAuthFactorEnum Enum with underlying type: string
type MyAuthenticationFactorValidatorAuthFactorEnum string
// Set of constants representing the allowable values for MyAuthenticationFactorValidatorAuthFactorEnum
const (
MyAuthenticationFactorValidatorAuthFactorUsernamePassword MyAuthenticationFactorValidatorAuthFactorEnum = "USERNAME_PASSWORD"
MyAuthenticationFactorValidatorAuthFactorPush MyAuthenticationFactorValidatorAuthFactorEnum = "PUSH"
MyAuthenticationFactorValidatorAuthFactorTotp MyAuthenticationFactorValidatorAuthFactorEnum = "TOTP"
MyAuthenticationFactorValidatorAuthFactorEmail MyAuthenticationFactorValidatorAuthFactorEnum = "EMAIL"
MyAuthenticationFactorValidatorAuthFactorSms MyAuthenticationFactorValidatorAuthFactorEnum = "SMS"
MyAuthenticationFactorValidatorAuthFactorVoice MyAuthenticationFactorValidatorAuthFactorEnum = "VOICE"
MyAuthenticationFactorValidatorAuthFactorBypasscode MyAuthenticationFactorValidatorAuthFactorEnum = "BYPASSCODE"
MyAuthenticationFactorValidatorAuthFactorSecurityQuestions MyAuthenticationFactorValidatorAuthFactorEnum = "SECURITY_QUESTIONS"
MyAuthenticationFactorValidatorAuthFactorTrustToken MyAuthenticationFactorValidatorAuthFactorEnum = "TRUST_TOKEN"
MyAuthenticationFactorValidatorAuthFactorPhoneCall MyAuthenticationFactorValidatorAuthFactorEnum = "PHONE_CALL"
MyAuthenticationFactorValidatorAuthFactorThirdparty MyAuthenticationFactorValidatorAuthFactorEnum = "THIRDPARTY"
MyAuthenticationFactorValidatorAuthFactorFidoAuthenticator MyAuthenticationFactorValidatorAuthFactorEnum = "FIDO_AUTHENTICATOR"
MyAuthenticationFactorValidatorAuthFactorYubicoOtp MyAuthenticationFactorValidatorAuthFactorEnum = "YUBICO_OTP"
MyAuthenticationFactorValidatorAuthFactorKmsiToken MyAuthenticationFactorValidatorAuthFactorEnum = "KMSI_TOKEN"
)
var mappingMyAuthenticationFactorValidatorAuthFactorEnum = map[string]MyAuthenticationFactorValidatorAuthFactorEnum{
"USERNAME_PASSWORD": MyAuthenticationFactorValidatorAuthFactorUsernamePassword,
"PUSH": MyAuthenticationFactorValidatorAuthFactorPush,
"TOTP": MyAuthenticationFactorValidatorAuthFactorTotp,
"EMAIL": MyAuthenticationFactorValidatorAuthFactorEmail,
"SMS": MyAuthenticationFactorValidatorAuthFactorSms,
"VOICE": MyAuthenticationFactorValidatorAuthFactorVoice,
"BYPASSCODE": MyAuthenticationFactorValidatorAuthFactorBypasscode,
"SECURITY_QUESTIONS": MyAuthenticationFactorValidatorAuthFactorSecurityQuestions,
"TRUST_TOKEN": MyAuthenticationFactorValidatorAuthFactorTrustToken,
"PHONE_CALL": MyAuthenticationFactorValidatorAuthFactorPhoneCall,
"THIRDPARTY": MyAuthenticationFactorValidatorAuthFactorThirdparty,
"FIDO_AUTHENTICATOR": MyAuthenticationFactorValidatorAuthFactorFidoAuthenticator,
"YUBICO_OTP": MyAuthenticationFactorValidatorAuthFactorYubicoOtp,
"KMSI_TOKEN": MyAuthenticationFactorValidatorAuthFactorKmsiToken,
}
var mappingMyAuthenticationFactorValidatorAuthFactorEnumLowerCase = map[string]MyAuthenticationFactorValidatorAuthFactorEnum{
"username_password": MyAuthenticationFactorValidatorAuthFactorUsernamePassword,
"push": MyAuthenticationFactorValidatorAuthFactorPush,
"totp": MyAuthenticationFactorValidatorAuthFactorTotp,
"email": MyAuthenticationFactorValidatorAuthFactorEmail,
"sms": MyAuthenticationFactorValidatorAuthFactorSms,
"voice": MyAuthenticationFactorValidatorAuthFactorVoice,
"bypasscode": MyAuthenticationFactorValidatorAuthFactorBypasscode,
"security_questions": MyAuthenticationFactorValidatorAuthFactorSecurityQuestions,
"trust_token": MyAuthenticationFactorValidatorAuthFactorTrustToken,
"phone_call": MyAuthenticationFactorValidatorAuthFactorPhoneCall,
"thirdparty": MyAuthenticationFactorValidatorAuthFactorThirdparty,
"fido_authenticator": MyAuthenticationFactorValidatorAuthFactorFidoAuthenticator,
"yubico_otp": MyAuthenticationFactorValidatorAuthFactorYubicoOtp,
"kmsi_token": MyAuthenticationFactorValidatorAuthFactorKmsiToken,
}
// GetMyAuthenticationFactorValidatorAuthFactorEnumValues Enumerates the set of values for MyAuthenticationFactorValidatorAuthFactorEnum
func GetMyAuthenticationFactorValidatorAuthFactorEnumValues() []MyAuthenticationFactorValidatorAuthFactorEnum {
values := make([]MyAuthenticationFactorValidatorAuthFactorEnum, 0)
for _, v := range mappingMyAuthenticationFactorValidatorAuthFactorEnum {
values = append(values, v)
}
return values
}
// GetMyAuthenticationFactorValidatorAuthFactorEnumStringValues Enumerates the set of values in String for MyAuthenticationFactorValidatorAuthFactorEnum
func GetMyAuthenticationFactorValidatorAuthFactorEnumStringValues() []string {
return []string{
"USERNAME_PASSWORD",
"PUSH",
"TOTP",
"EMAIL",
"SMS",
"VOICE",
"BYPASSCODE",
"SECURITY_QUESTIONS",
"TRUST_TOKEN",
"PHONE_CALL",
"THIRDPARTY",
"FIDO_AUTHENTICATOR",
"YUBICO_OTP",
"KMSI_TOKEN",
}
}
// GetMappingMyAuthenticationFactorValidatorAuthFactorEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMyAuthenticationFactorValidatorAuthFactorEnum(val string) (MyAuthenticationFactorValidatorAuthFactorEnum, bool) {
enum, ok := mappingMyAuthenticationFactorValidatorAuthFactorEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// MyAuthenticationFactorValidatorScenarioEnum Enum with underlying type: string
type MyAuthenticationFactorValidatorScenarioEnum string
// Set of constants representing the allowable values for MyAuthenticationFactorValidatorScenarioEnum
const (
MyAuthenticationFactorValidatorScenarioEnrollment MyAuthenticationFactorValidatorScenarioEnum = "ENROLLMENT"
MyAuthenticationFactorValidatorScenarioAuthentication MyAuthenticationFactorValidatorScenarioEnum = "AUTHENTICATION"
)
var mappingMyAuthenticationFactorValidatorScenarioEnum = map[string]MyAuthenticationFactorValidatorScenarioEnum{
"ENROLLMENT": MyAuthenticationFactorValidatorScenarioEnrollment,
"AUTHENTICATION": MyAuthenticationFactorValidatorScenarioAuthentication,
}
var mappingMyAuthenticationFactorValidatorScenarioEnumLowerCase = map[string]MyAuthenticationFactorValidatorScenarioEnum{
"enrollment": MyAuthenticationFactorValidatorScenarioEnrollment,
"authentication": MyAuthenticationFactorValidatorScenarioAuthentication,
}
// GetMyAuthenticationFactorValidatorScenarioEnumValues Enumerates the set of values for MyAuthenticationFactorValidatorScenarioEnum
func GetMyAuthenticationFactorValidatorScenarioEnumValues() []MyAuthenticationFactorValidatorScenarioEnum {
values := make([]MyAuthenticationFactorValidatorScenarioEnum, 0)
for _, v := range mappingMyAuthenticationFactorValidatorScenarioEnum {
values = append(values, v)
}
return values
}
// GetMyAuthenticationFactorValidatorScenarioEnumStringValues Enumerates the set of values in String for MyAuthenticationFactorValidatorScenarioEnum
func GetMyAuthenticationFactorValidatorScenarioEnumStringValues() []string {
return []string{
"ENROLLMENT",
"AUTHENTICATION",
}
}
// GetMappingMyAuthenticationFactorValidatorScenarioEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMyAuthenticationFactorValidatorScenarioEnum(val string) (MyAuthenticationFactorValidatorScenarioEnum, bool) {
enum, ok := mappingMyAuthenticationFactorValidatorScenarioEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// MyAuthenticationFactorValidatorStatusEnum Enum with underlying type: string
type MyAuthenticationFactorValidatorStatusEnum string
// Set of constants representing the allowable values for MyAuthenticationFactorValidatorStatusEnum
const (
MyAuthenticationFactorValidatorStatusSuccess MyAuthenticationFactorValidatorStatusEnum = "SUCCESS"
MyAuthenticationFactorValidatorStatusFailure MyAuthenticationFactorValidatorStatusEnum = "FAILURE"
)
var mappingMyAuthenticationFactorValidatorStatusEnum = map[string]MyAuthenticationFactorValidatorStatusEnum{
"SUCCESS": MyAuthenticationFactorValidatorStatusSuccess,
"FAILURE": MyAuthenticationFactorValidatorStatusFailure,
}
var mappingMyAuthenticationFactorValidatorStatusEnumLowerCase = map[string]MyAuthenticationFactorValidatorStatusEnum{
"success": MyAuthenticationFactorValidatorStatusSuccess,
"failure": MyAuthenticationFactorValidatorStatusFailure,
}
// GetMyAuthenticationFactorValidatorStatusEnumValues Enumerates the set of values for MyAuthenticationFactorValidatorStatusEnum
func GetMyAuthenticationFactorValidatorStatusEnumValues() []MyAuthenticationFactorValidatorStatusEnum {
values := make([]MyAuthenticationFactorValidatorStatusEnum, 0)
for _, v := range mappingMyAuthenticationFactorValidatorStatusEnum {
values = append(values, v)
}
return values
}
// GetMyAuthenticationFactorValidatorStatusEnumStringValues Enumerates the set of values in String for MyAuthenticationFactorValidatorStatusEnum
func GetMyAuthenticationFactorValidatorStatusEnumStringValues() []string {
return []string{
"SUCCESS",
"FAILURE",
}
}
// GetMappingMyAuthenticationFactorValidatorStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMyAuthenticationFactorValidatorStatusEnum(val string) (MyAuthenticationFactorValidatorStatusEnum, bool) {
enum, ok := mappingMyAuthenticationFactorValidatorStatusEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// MyAuthenticationFactorValidatorTypeEnum Enum with underlying type: string
type MyAuthenticationFactorValidatorTypeEnum string
// Set of constants representing the allowable values for MyAuthenticationFactorValidatorTypeEnum
const (
MyAuthenticationFactorValidatorTypeSaml MyAuthenticationFactorValidatorTypeEnum = "SAML"
MyAuthenticationFactorValidatorTypeOidc MyAuthenticationFactorValidatorTypeEnum = "OIDC"
)
var mappingMyAuthenticationFactorValidatorTypeEnum = map[string]MyAuthenticationFactorValidatorTypeEnum{
"SAML": MyAuthenticationFactorValidatorTypeSaml,
"OIDC": MyAuthenticationFactorValidatorTypeOidc,
}
var mappingMyAuthenticationFactorValidatorTypeEnumLowerCase = map[string]MyAuthenticationFactorValidatorTypeEnum{
"saml": MyAuthenticationFactorValidatorTypeSaml,
"oidc": MyAuthenticationFactorValidatorTypeOidc,
}
// GetMyAuthenticationFactorValidatorTypeEnumValues Enumerates the set of values for MyAuthenticationFactorValidatorTypeEnum
func GetMyAuthenticationFactorValidatorTypeEnumValues() []MyAuthenticationFactorValidatorTypeEnum {
values := make([]MyAuthenticationFactorValidatorTypeEnum, 0)
for _, v := range mappingMyAuthenticationFactorValidatorTypeEnum {
values = append(values, v)
}
return values
}
// GetMyAuthenticationFactorValidatorTypeEnumStringValues Enumerates the set of values in String for MyAuthenticationFactorValidatorTypeEnum
func GetMyAuthenticationFactorValidatorTypeEnumStringValues() []string {
return []string{
"SAML",
"OIDC",
}
}
// GetMappingMyAuthenticationFactorValidatorTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMyAuthenticationFactorValidatorTypeEnum(val string) (MyAuthenticationFactorValidatorTypeEnum, bool) {
enum, ok := mappingMyAuthenticationFactorValidatorTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// MyAuthenticationFactorValidatorPreferenceTypeEnum Enum with underlying type: string
type MyAuthenticationFactorValidatorPreferenceTypeEnum string
// Set of constants representing the allowable values for MyAuthenticationFactorValidatorPreferenceTypeEnum
const (
MyAuthenticationFactorValidatorPreferenceTypePasswordless MyAuthenticationFactorValidatorPreferenceTypeEnum = "PASSWORDLESS"
MyAuthenticationFactorValidatorPreferenceTypeMfa MyAuthenticationFactorValidatorPreferenceTypeEnum = "MFA"
)
var mappingMyAuthenticationFactorValidatorPreferenceTypeEnum = map[string]MyAuthenticationFactorValidatorPreferenceTypeEnum{
"PASSWORDLESS": MyAuthenticationFactorValidatorPreferenceTypePasswordless,
"MFA": MyAuthenticationFactorValidatorPreferenceTypeMfa,
}
var mappingMyAuthenticationFactorValidatorPreferenceTypeEnumLowerCase = map[string]MyAuthenticationFactorValidatorPreferenceTypeEnum{
"passwordless": MyAuthenticationFactorValidatorPreferenceTypePasswordless,
"mfa": MyAuthenticationFactorValidatorPreferenceTypeMfa,
}
// GetMyAuthenticationFactorValidatorPreferenceTypeEnumValues Enumerates the set of values for MyAuthenticationFactorValidatorPreferenceTypeEnum
func GetMyAuthenticationFactorValidatorPreferenceTypeEnumValues() []MyAuthenticationFactorValidatorPreferenceTypeEnum {
values := make([]MyAuthenticationFactorValidatorPreferenceTypeEnum, 0)
for _, v := range mappingMyAuthenticationFactorValidatorPreferenceTypeEnum {
values = append(values, v)
}
return values
}
// GetMyAuthenticationFactorValidatorPreferenceTypeEnumStringValues Enumerates the set of values in String for MyAuthenticationFactorValidatorPreferenceTypeEnum
func GetMyAuthenticationFactorValidatorPreferenceTypeEnumStringValues() []string {
return []string{
"PASSWORDLESS",
"MFA",
}
}
// GetMappingMyAuthenticationFactorValidatorPreferenceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMyAuthenticationFactorValidatorPreferenceTypeEnum(val string) (MyAuthenticationFactorValidatorPreferenceTypeEnum, bool) {
enum, ok := mappingMyAuthenticationFactorValidatorPreferenceTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}