/
Client.cs
929 lines (801 loc) · 38.9 KB
/
Client.cs
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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Auth0
{
/// <summary>
/// With this resource, you can set up applications that use Auth0 for authentication and configure allowed callback URLs and secrets for these applications. Depending on your plan, you may also configure add-ons to allow your application to call another application's API (such as Firebase and AWS) on behalf of an authenticated user.
///
/// ## Example Usage
///
/// ```csharp
/// using Pulumi;
/// using Auth0 = Pulumi.Auth0;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var myClient = new Auth0.Client("myClient", new Auth0.ClientArgs
/// {
/// Addons = new Auth0.Inputs.ClientAddonsArgs
/// {
/// Firebase =
/// {
/// { "clientEmail", "john.doe@example.com" },
/// { "lifetimeInSeconds", 1 },
/// { "privateKey", "wer" },
/// { "privateKeyId", "qwreerwerwe" },
/// },
/// Samlp = new Auth0.Inputs.ClientAddonsSamlpArgs
/// {
/// Audience = "https://example.com/saml",
/// CreateUpnClaim = false,
/// MapIdentities = false,
/// MapUnknownClaimsAsIs = false,
/// Mappings =
/// {
/// { "email", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" },
/// { "name", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" },
/// },
/// NameIdentifierFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent",
/// NameIdentifierProbes =
/// {
/// "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
/// },
/// PassthroughClaimsWithNoMapping = false,
/// SigningCert = "pemcertificate",
/// },
/// },
/// AllowedClients =
/// {
/// "https://allowed.example.com",
/// },
/// AllowedLogoutUrls =
/// {
/// "https://example.com",
/// },
/// AllowedOrigins =
/// {
/// "https://example.com",
/// },
/// AppType = "non_interactive",
/// Callbacks =
/// {
/// "https://example.com/callback",
/// },
/// ClientMetadata =
/// {
/// { "foo", "zoo" },
/// },
/// ClientSecretRotationTrigger =
/// {
/// { "triggered_at", "2018-01-02T23:12:01Z" },
/// { "triggered_by", "auth0" },
/// },
/// CustomLoginPageOn = true,
/// Description = "Test Applications Long Description",
/// GrantTypes =
/// {
/// "authorization_code",
/// "http://auth0.com/oauth/grant-type/password-realm",
/// "implicit",
/// "password",
/// "refresh_token",
/// },
/// InitiateLoginUri = "https://example.com/login",
/// IsFirstParty = true,
/// IsTokenEndpointIpHeaderTrusted = true,
/// JwtConfiguration = new Auth0.Inputs.ClientJwtConfigurationArgs
/// {
/// Alg = "RS256",
/// LifetimeInSeconds = 300,
/// Scopes =
/// {
/// { "foo", "bar" },
/// },
/// SecretEncoded = true,
/// },
/// Mobile = new Auth0.Inputs.ClientMobileArgs
/// {
/// Ios = new Auth0.Inputs.ClientMobileIosArgs
/// {
/// AppBundleIdentifier = "com.my.bundle.id",
/// TeamId = "9JA89QQLNQ",
/// },
/// },
/// OidcConformant = false,
/// OrganizationRequireBehavior = "no_prompt",
/// OrganizationUsage = "deny",
/// RefreshToken = new Auth0.Inputs.ClientRefreshTokenArgs
/// {
/// ExpirationType = "expiring",
/// IdleTokenLifetime = 1296000,
/// InfiniteIdleTokenLifetime = true,
/// InfiniteTokenLifetime = false,
/// Leeway = 15,
/// RotationType = "rotating",
/// TokenLifetime = 84600,
/// },
/// TokenEndpointAuthMethod = "client_secret_post",
/// WebOrigins =
/// {
/// "https://example.com",
/// },
/// });
/// }
///
/// }
/// ```
///
/// ## Import
///
/// A client can be imported using the client's ID, e.g.
///
/// ```sh
/// $ pulumi import auth0:index/client:Client my_client AaiyAPdpYdesoKnqjj8HJqRn4T5titww
/// ```
/// </summary>
[Auth0ResourceType("auth0:index/client:Client")]
public partial class Client : Pulumi.CustomResource
{
/// <summary>
/// List(Resource). Configuration settings for add-ons for this client. For details, see Add-ons.
/// </summary>
[Output("addons")]
public Output<Outputs.ClientAddons?> Addons { get; private set; } = null!;
/// <summary>
/// List(String). List of applications ID's that will be allowed to make delegation request. By default, all applications will be allowed.
/// </summary>
[Output("allowedClients")]
public Output<ImmutableArray<string>> AllowedClients { get; private set; } = null!;
/// <summary>
/// List(String). URLs that Auth0 may redirect to after logout.
/// </summary>
[Output("allowedLogoutUrls")]
public Output<ImmutableArray<string>> AllowedLogoutUrls { get; private set; } = null!;
/// <summary>
/// List(String). URLs that represent valid origins for cross-origin resource sharing. By default, all your callback URLs will be allowed.
/// </summary>
[Output("allowedOrigins")]
public Output<ImmutableArray<string>> AllowedOrigins { get; private set; } = null!;
/// <summary>
/// String. Type of application the client represents. Options include `native`, `spa`, `regular_web`, `non_interactive`, `rms`, `box`, `cloudbees`, `concur`, `dropbox`, `mscrm`, `echosign`, `egnyte`, `newrelic`, `office365`, `salesforce`, `sentry`, `sharepoint`, `slack`, `springcm`, `zendesk`, `zoom`.
/// </summary>
[Output("appType")]
public Output<string?> AppType { get; private set; } = null!;
/// <summary>
/// List(String). URLs that Auth0 may call back to after a user authenticates for the client. Make sure to specify the protocol (https://) otherwise the callback may fail in some cases. With the exception of custom URI schemes for native clients, all callbacks should use protocol https://.
/// </summary>
[Output("callbacks")]
public Output<ImmutableArray<string>> Callbacks { get; private set; } = null!;
/// <summary>
/// String. ID of the client.
/// * `client_secret`<sup>1</sup> - String. Secret for the client; keep this private.
/// </summary>
[Output("clientId")]
public Output<string> ClientId { get; private set; } = null!;
/// <summary>
/// Map(String)
/// </summary>
[Output("clientMetadata")]
public Output<ImmutableDictionary<string, object>?> ClientMetadata { get; private set; } = null!;
[Output("clientSecret")]
public Output<string> ClientSecret { get; private set; } = null!;
/// <summary>
/// Map. Custom metadata for the rotation. For more info: [rotate-client-secret](https://auth0.com/docs/get-started/applications/rotate-client-secret).
/// </summary>
[Output("clientSecretRotationTrigger")]
public Output<ImmutableDictionary<string, object>?> ClientSecretRotationTrigger { get; private set; } = null!;
/// <summary>
/// Boolean. Indicates whether or not the client can be used to make cross-origin authentication requests.
/// </summary>
[Output("crossOriginAuth")]
public Output<bool?> CrossOriginAuth { get; private set; } = null!;
/// <summary>
/// String. URL for the location on your site where the cross-origin verification takes place for the cross-origin auth flow. Used when performing auth in your own domain instead of through the Auth0-hosted login page.
/// </summary>
[Output("crossOriginLoc")]
public Output<string?> CrossOriginLoc { get; private set; } = null!;
/// <summary>
/// String. Content of the custom login page.
/// </summary>
[Output("customLoginPage")]
public Output<string?> CustomLoginPage { get; private set; } = null!;
/// <summary>
/// Boolean. Indicates whether or not a custom login page is to be used.
/// </summary>
[Output("customLoginPageOn")]
public Output<bool> CustomLoginPageOn { get; private set; } = null!;
/// <summary>
/// String, (Max length = 140 characters). Description of the purpose of the client.
/// </summary>
[Output("description")]
public Output<string> Description { get; private set; } = null!;
/// <summary>
/// Map(String).
/// </summary>
[Output("encryptionKey")]
public Output<ImmutableDictionary<string, string>?> EncryptionKey { get; private set; } = null!;
/// <summary>
/// String. Form template for WS-Federation protocol.
/// </summary>
[Output("formTemplate")]
public Output<string?> FormTemplate { get; private set; } = null!;
/// <summary>
/// List(String). Types of grants that this client is authorized to use.
/// </summary>
[Output("grantTypes")]
public Output<ImmutableArray<string>> GrantTypes { get; private set; } = null!;
/// <summary>
/// String. Initiate login uri, must be https.
/// </summary>
[Output("initiateLoginUri")]
public Output<string?> InitiateLoginUri { get; private set; } = null!;
/// <summary>
/// Boolean. Indicates whether or not this client is a first-party client.
/// </summary>
[Output("isFirstParty")]
public Output<bool> IsFirstParty { get; private set; } = null!;
/// <summary>
/// Boolean. Indicates whether or not the token endpoint IP header is trusted.
/// </summary>
[Output("isTokenEndpointIpHeaderTrusted")]
public Output<bool> IsTokenEndpointIpHeaderTrusted { get; private set; } = null!;
/// <summary>
/// List(Resource). Configuration settings for the JWTs issued for this client. For details, see JWT Configuration.
/// </summary>
[Output("jwtConfiguration")]
public Output<Outputs.ClientJwtConfiguration> JwtConfiguration { get; private set; } = null!;
/// <summary>
/// String. URL of the logo for the client. Recommended size is 150px x 150px. If none is set, the default badge for the application type will be shown.
/// </summary>
[Output("logoUri")]
public Output<string?> LogoUri { get; private set; } = null!;
/// <summary>
/// List(Resource). Configuration settings for mobile native applications. For details, see Mobile.
/// </summary>
[Output("mobile")]
public Output<Outputs.ClientMobile> Mobile { get; private set; } = null!;
/// <summary>
/// String. Name of the client.
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;
/// <summary>
/// List(Resource). Configuration settings to toggle native social login for mobile native applications. For details, see Native Social Login
/// </summary>
[Output("nativeSocialLogin")]
public Output<Outputs.ClientNativeSocialLogin> NativeSocialLogin { get; private set; } = null!;
/// <summary>
/// Boolean. Indicates whether or not this client will conform to strict OIDC specifications.
/// </summary>
[Output("oidcConformant")]
public Output<bool> OidcConformant { get; private set; } = null!;
/// <summary>
/// String. Defines how to proceed during an authentication transaction when `organization_usage = "require"`. Can be `no_prompt` (default) or `pre_login_prompt`.
/// </summary>
[Output("organizationRequireBehavior")]
public Output<string?> OrganizationRequireBehavior { get; private set; } = null!;
/// <summary>
/// String. Defines how to proceed during an authentication transaction with regards an organization. Can be `deny` (default), `allow` or `require`.
/// </summary>
[Output("organizationUsage")]
public Output<string?> OrganizationUsage { get; private set; } = null!;
/// <summary>
/// List(Resource). Configuration settings for the refresh tokens issued for this client. For details, see Refresh Token Configuration.
/// </summary>
[Output("refreshToken")]
public Output<Outputs.ClientRefreshToken> RefreshToken { get; private set; } = null!;
/// <summary>
/// List(Map). List containing a map of the public cert of the signing key and the public cert of the signing key in pkcs7.
/// </summary>
[Output("signingKeys")]
public Output<ImmutableArray<ImmutableDictionary<string, object>>> SigningKeys { get; private set; } = null!;
/// <summary>
/// Boolean. Indicates whether or not the client should use Auth0 rather than the IdP to perform Single Sign-On (SSO). True = Use Auth0.
/// </summary>
[Output("sso")]
public Output<bool?> Sso { get; private set; } = null!;
/// <summary>
/// Boolean. Indicates whether or not SSO is disabled.
/// </summary>
[Output("ssoDisabled")]
public Output<bool?> SsoDisabled { get; private set; } = null!;
/// <summary>
/// String. Defines the requested authentication method for the token endpoint. Options include `none` (public client without a client secret), `client_secret_post` (client uses HTTP POST parameters), `client_secret_basic` (client uses HTTP Basic).
/// </summary>
[Output("tokenEndpointAuthMethod")]
public Output<string> TokenEndpointAuthMethod { get; private set; } = null!;
/// <summary>
/// List(String). URLs that represent valid web origins for use with web message response mode.
/// </summary>
[Output("webOrigins")]
public Output<ImmutableArray<string>> WebOrigins { get; private set; } = null!;
/// <summary>
/// Create a Client resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public Client(string name, ClientArgs? args = null, CustomResourceOptions? options = null)
: base("auth0:index/client:Client", name, args ?? new ClientArgs(), MakeResourceOptions(options, ""))
{
}
private Client(string name, Input<string> id, ClientState? state = null, CustomResourceOptions? options = null)
: base("auth0:index/client:Client", name, state, MakeResourceOptions(options, id))
{
}
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing Client resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static Client Get(string name, Input<string> id, ClientState? state = null, CustomResourceOptions? options = null)
{
return new Client(name, id, state, options);
}
}
public sealed class ClientArgs : Pulumi.ResourceArgs
{
/// <summary>
/// List(Resource). Configuration settings for add-ons for this client. For details, see Add-ons.
/// </summary>
[Input("addons")]
public Input<Inputs.ClientAddonsArgs>? Addons { get; set; }
[Input("allowedClients")]
private InputList<string>? _allowedClients;
/// <summary>
/// List(String). List of applications ID's that will be allowed to make delegation request. By default, all applications will be allowed.
/// </summary>
public InputList<string> AllowedClients
{
get => _allowedClients ?? (_allowedClients = new InputList<string>());
set => _allowedClients = value;
}
[Input("allowedLogoutUrls")]
private InputList<string>? _allowedLogoutUrls;
/// <summary>
/// List(String). URLs that Auth0 may redirect to after logout.
/// </summary>
public InputList<string> AllowedLogoutUrls
{
get => _allowedLogoutUrls ?? (_allowedLogoutUrls = new InputList<string>());
set => _allowedLogoutUrls = value;
}
[Input("allowedOrigins")]
private InputList<string>? _allowedOrigins;
/// <summary>
/// List(String). URLs that represent valid origins for cross-origin resource sharing. By default, all your callback URLs will be allowed.
/// </summary>
public InputList<string> AllowedOrigins
{
get => _allowedOrigins ?? (_allowedOrigins = new InputList<string>());
set => _allowedOrigins = value;
}
/// <summary>
/// String. Type of application the client represents. Options include `native`, `spa`, `regular_web`, `non_interactive`, `rms`, `box`, `cloudbees`, `concur`, `dropbox`, `mscrm`, `echosign`, `egnyte`, `newrelic`, `office365`, `salesforce`, `sentry`, `sharepoint`, `slack`, `springcm`, `zendesk`, `zoom`.
/// </summary>
[Input("appType")]
public Input<string>? AppType { get; set; }
[Input("callbacks")]
private InputList<string>? _callbacks;
/// <summary>
/// List(String). URLs that Auth0 may call back to after a user authenticates for the client. Make sure to specify the protocol (https://) otherwise the callback may fail in some cases. With the exception of custom URI schemes for native clients, all callbacks should use protocol https://.
/// </summary>
public InputList<string> Callbacks
{
get => _callbacks ?? (_callbacks = new InputList<string>());
set => _callbacks = value;
}
[Input("clientMetadata")]
private InputMap<object>? _clientMetadata;
/// <summary>
/// Map(String)
/// </summary>
public InputMap<object> ClientMetadata
{
get => _clientMetadata ?? (_clientMetadata = new InputMap<object>());
set => _clientMetadata = value;
}
[Input("clientSecretRotationTrigger")]
private InputMap<object>? _clientSecretRotationTrigger;
/// <summary>
/// Map. Custom metadata for the rotation. For more info: [rotate-client-secret](https://auth0.com/docs/get-started/applications/rotate-client-secret).
/// </summary>
public InputMap<object> ClientSecretRotationTrigger
{
get => _clientSecretRotationTrigger ?? (_clientSecretRotationTrigger = new InputMap<object>());
set => _clientSecretRotationTrigger = value;
}
/// <summary>
/// Boolean. Indicates whether or not the client can be used to make cross-origin authentication requests.
/// </summary>
[Input("crossOriginAuth")]
public Input<bool>? CrossOriginAuth { get; set; }
/// <summary>
/// String. URL for the location on your site where the cross-origin verification takes place for the cross-origin auth flow. Used when performing auth in your own domain instead of through the Auth0-hosted login page.
/// </summary>
[Input("crossOriginLoc")]
public Input<string>? CrossOriginLoc { get; set; }
/// <summary>
/// String. Content of the custom login page.
/// </summary>
[Input("customLoginPage")]
public Input<string>? CustomLoginPage { get; set; }
/// <summary>
/// Boolean. Indicates whether or not a custom login page is to be used.
/// </summary>
[Input("customLoginPageOn")]
public Input<bool>? CustomLoginPageOn { get; set; }
/// <summary>
/// String, (Max length = 140 characters). Description of the purpose of the client.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }
[Input("encryptionKey")]
private InputMap<string>? _encryptionKey;
/// <summary>
/// Map(String).
/// </summary>
public InputMap<string> EncryptionKey
{
get => _encryptionKey ?? (_encryptionKey = new InputMap<string>());
set => _encryptionKey = value;
}
/// <summary>
/// String. Form template for WS-Federation protocol.
/// </summary>
[Input("formTemplate")]
public Input<string>? FormTemplate { get; set; }
[Input("grantTypes")]
private InputList<string>? _grantTypes;
/// <summary>
/// List(String). Types of grants that this client is authorized to use.
/// </summary>
public InputList<string> GrantTypes
{
get => _grantTypes ?? (_grantTypes = new InputList<string>());
set => _grantTypes = value;
}
/// <summary>
/// String. Initiate login uri, must be https.
/// </summary>
[Input("initiateLoginUri")]
public Input<string>? InitiateLoginUri { get; set; }
/// <summary>
/// Boolean. Indicates whether or not this client is a first-party client.
/// </summary>
[Input("isFirstParty")]
public Input<bool>? IsFirstParty { get; set; }
/// <summary>
/// Boolean. Indicates whether or not the token endpoint IP header is trusted.
/// </summary>
[Input("isTokenEndpointIpHeaderTrusted")]
public Input<bool>? IsTokenEndpointIpHeaderTrusted { get; set; }
/// <summary>
/// List(Resource). Configuration settings for the JWTs issued for this client. For details, see JWT Configuration.
/// </summary>
[Input("jwtConfiguration")]
public Input<Inputs.ClientJwtConfigurationArgs>? JwtConfiguration { get; set; }
/// <summary>
/// String. URL of the logo for the client. Recommended size is 150px x 150px. If none is set, the default badge for the application type will be shown.
/// </summary>
[Input("logoUri")]
public Input<string>? LogoUri { get; set; }
/// <summary>
/// List(Resource). Configuration settings for mobile native applications. For details, see Mobile.
/// </summary>
[Input("mobile")]
public Input<Inputs.ClientMobileArgs>? Mobile { get; set; }
/// <summary>
/// String. Name of the client.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }
/// <summary>
/// List(Resource). Configuration settings to toggle native social login for mobile native applications. For details, see Native Social Login
/// </summary>
[Input("nativeSocialLogin")]
public Input<Inputs.ClientNativeSocialLoginArgs>? NativeSocialLogin { get; set; }
/// <summary>
/// Boolean. Indicates whether or not this client will conform to strict OIDC specifications.
/// </summary>
[Input("oidcConformant")]
public Input<bool>? OidcConformant { get; set; }
/// <summary>
/// String. Defines how to proceed during an authentication transaction when `organization_usage = "require"`. Can be `no_prompt` (default) or `pre_login_prompt`.
/// </summary>
[Input("organizationRequireBehavior")]
public Input<string>? OrganizationRequireBehavior { get; set; }
/// <summary>
/// String. Defines how to proceed during an authentication transaction with regards an organization. Can be `deny` (default), `allow` or `require`.
/// </summary>
[Input("organizationUsage")]
public Input<string>? OrganizationUsage { get; set; }
/// <summary>
/// List(Resource). Configuration settings for the refresh tokens issued for this client. For details, see Refresh Token Configuration.
/// </summary>
[Input("refreshToken")]
public Input<Inputs.ClientRefreshTokenArgs>? RefreshToken { get; set; }
/// <summary>
/// Boolean. Indicates whether or not the client should use Auth0 rather than the IdP to perform Single Sign-On (SSO). True = Use Auth0.
/// </summary>
[Input("sso")]
public Input<bool>? Sso { get; set; }
/// <summary>
/// Boolean. Indicates whether or not SSO is disabled.
/// </summary>
[Input("ssoDisabled")]
public Input<bool>? SsoDisabled { get; set; }
/// <summary>
/// String. Defines the requested authentication method for the token endpoint. Options include `none` (public client without a client secret), `client_secret_post` (client uses HTTP POST parameters), `client_secret_basic` (client uses HTTP Basic).
/// </summary>
[Input("tokenEndpointAuthMethod")]
public Input<string>? TokenEndpointAuthMethod { get; set; }
[Input("webOrigins")]
private InputList<string>? _webOrigins;
/// <summary>
/// List(String). URLs that represent valid web origins for use with web message response mode.
/// </summary>
public InputList<string> WebOrigins
{
get => _webOrigins ?? (_webOrigins = new InputList<string>());
set => _webOrigins = value;
}
public ClientArgs()
{
Description = "Managed by Pulumi";
}
}
public sealed class ClientState : Pulumi.ResourceArgs
{
/// <summary>
/// List(Resource). Configuration settings for add-ons for this client. For details, see Add-ons.
/// </summary>
[Input("addons")]
public Input<Inputs.ClientAddonsGetArgs>? Addons { get; set; }
[Input("allowedClients")]
private InputList<string>? _allowedClients;
/// <summary>
/// List(String). List of applications ID's that will be allowed to make delegation request. By default, all applications will be allowed.
/// </summary>
public InputList<string> AllowedClients
{
get => _allowedClients ?? (_allowedClients = new InputList<string>());
set => _allowedClients = value;
}
[Input("allowedLogoutUrls")]
private InputList<string>? _allowedLogoutUrls;
/// <summary>
/// List(String). URLs that Auth0 may redirect to after logout.
/// </summary>
public InputList<string> AllowedLogoutUrls
{
get => _allowedLogoutUrls ?? (_allowedLogoutUrls = new InputList<string>());
set => _allowedLogoutUrls = value;
}
[Input("allowedOrigins")]
private InputList<string>? _allowedOrigins;
/// <summary>
/// List(String). URLs that represent valid origins for cross-origin resource sharing. By default, all your callback URLs will be allowed.
/// </summary>
public InputList<string> AllowedOrigins
{
get => _allowedOrigins ?? (_allowedOrigins = new InputList<string>());
set => _allowedOrigins = value;
}
/// <summary>
/// String. Type of application the client represents. Options include `native`, `spa`, `regular_web`, `non_interactive`, `rms`, `box`, `cloudbees`, `concur`, `dropbox`, `mscrm`, `echosign`, `egnyte`, `newrelic`, `office365`, `salesforce`, `sentry`, `sharepoint`, `slack`, `springcm`, `zendesk`, `zoom`.
/// </summary>
[Input("appType")]
public Input<string>? AppType { get; set; }
[Input("callbacks")]
private InputList<string>? _callbacks;
/// <summary>
/// List(String). URLs that Auth0 may call back to after a user authenticates for the client. Make sure to specify the protocol (https://) otherwise the callback may fail in some cases. With the exception of custom URI schemes for native clients, all callbacks should use protocol https://.
/// </summary>
public InputList<string> Callbacks
{
get => _callbacks ?? (_callbacks = new InputList<string>());
set => _callbacks = value;
}
/// <summary>
/// String. ID of the client.
/// * `client_secret`<sup>1</sup> - String. Secret for the client; keep this private.
/// </summary>
[Input("clientId")]
public Input<string>? ClientId { get; set; }
[Input("clientMetadata")]
private InputMap<object>? _clientMetadata;
/// <summary>
/// Map(String)
/// </summary>
public InputMap<object> ClientMetadata
{
get => _clientMetadata ?? (_clientMetadata = new InputMap<object>());
set => _clientMetadata = value;
}
[Input("clientSecret")]
public Input<string>? ClientSecret { get; set; }
[Input("clientSecretRotationTrigger")]
private InputMap<object>? _clientSecretRotationTrigger;
/// <summary>
/// Map. Custom metadata for the rotation. For more info: [rotate-client-secret](https://auth0.com/docs/get-started/applications/rotate-client-secret).
/// </summary>
public InputMap<object> ClientSecretRotationTrigger
{
get => _clientSecretRotationTrigger ?? (_clientSecretRotationTrigger = new InputMap<object>());
set => _clientSecretRotationTrigger = value;
}
/// <summary>
/// Boolean. Indicates whether or not the client can be used to make cross-origin authentication requests.
/// </summary>
[Input("crossOriginAuth")]
public Input<bool>? CrossOriginAuth { get; set; }
/// <summary>
/// String. URL for the location on your site where the cross-origin verification takes place for the cross-origin auth flow. Used when performing auth in your own domain instead of through the Auth0-hosted login page.
/// </summary>
[Input("crossOriginLoc")]
public Input<string>? CrossOriginLoc { get; set; }
/// <summary>
/// String. Content of the custom login page.
/// </summary>
[Input("customLoginPage")]
public Input<string>? CustomLoginPage { get; set; }
/// <summary>
/// Boolean. Indicates whether or not a custom login page is to be used.
/// </summary>
[Input("customLoginPageOn")]
public Input<bool>? CustomLoginPageOn { get; set; }
/// <summary>
/// String, (Max length = 140 characters). Description of the purpose of the client.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }
[Input("encryptionKey")]
private InputMap<string>? _encryptionKey;
/// <summary>
/// Map(String).
/// </summary>
public InputMap<string> EncryptionKey
{
get => _encryptionKey ?? (_encryptionKey = new InputMap<string>());
set => _encryptionKey = value;
}
/// <summary>
/// String. Form template for WS-Federation protocol.
/// </summary>
[Input("formTemplate")]
public Input<string>? FormTemplate { get; set; }
[Input("grantTypes")]
private InputList<string>? _grantTypes;
/// <summary>
/// List(String). Types of grants that this client is authorized to use.
/// </summary>
public InputList<string> GrantTypes
{
get => _grantTypes ?? (_grantTypes = new InputList<string>());
set => _grantTypes = value;
}
/// <summary>
/// String. Initiate login uri, must be https.
/// </summary>
[Input("initiateLoginUri")]
public Input<string>? InitiateLoginUri { get; set; }
/// <summary>
/// Boolean. Indicates whether or not this client is a first-party client.
/// </summary>
[Input("isFirstParty")]
public Input<bool>? IsFirstParty { get; set; }
/// <summary>
/// Boolean. Indicates whether or not the token endpoint IP header is trusted.
/// </summary>
[Input("isTokenEndpointIpHeaderTrusted")]
public Input<bool>? IsTokenEndpointIpHeaderTrusted { get; set; }
/// <summary>
/// List(Resource). Configuration settings for the JWTs issued for this client. For details, see JWT Configuration.
/// </summary>
[Input("jwtConfiguration")]
public Input<Inputs.ClientJwtConfigurationGetArgs>? JwtConfiguration { get; set; }
/// <summary>
/// String. URL of the logo for the client. Recommended size is 150px x 150px. If none is set, the default badge for the application type will be shown.
/// </summary>
[Input("logoUri")]
public Input<string>? LogoUri { get; set; }
/// <summary>
/// List(Resource). Configuration settings for mobile native applications. For details, see Mobile.
/// </summary>
[Input("mobile")]
public Input<Inputs.ClientMobileGetArgs>? Mobile { get; set; }
/// <summary>
/// String. Name of the client.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }
/// <summary>
/// List(Resource). Configuration settings to toggle native social login for mobile native applications. For details, see Native Social Login
/// </summary>
[Input("nativeSocialLogin")]
public Input<Inputs.ClientNativeSocialLoginGetArgs>? NativeSocialLogin { get; set; }
/// <summary>
/// Boolean. Indicates whether or not this client will conform to strict OIDC specifications.
/// </summary>
[Input("oidcConformant")]
public Input<bool>? OidcConformant { get; set; }
/// <summary>
/// String. Defines how to proceed during an authentication transaction when `organization_usage = "require"`. Can be `no_prompt` (default) or `pre_login_prompt`.
/// </summary>
[Input("organizationRequireBehavior")]
public Input<string>? OrganizationRequireBehavior { get; set; }
/// <summary>
/// String. Defines how to proceed during an authentication transaction with regards an organization. Can be `deny` (default), `allow` or `require`.
/// </summary>
[Input("organizationUsage")]
public Input<string>? OrganizationUsage { get; set; }
/// <summary>
/// List(Resource). Configuration settings for the refresh tokens issued for this client. For details, see Refresh Token Configuration.
/// </summary>
[Input("refreshToken")]
public Input<Inputs.ClientRefreshTokenGetArgs>? RefreshToken { get; set; }
[Input("signingKeys")]
private InputList<ImmutableDictionary<string, object>>? _signingKeys;
/// <summary>
/// List(Map). List containing a map of the public cert of the signing key and the public cert of the signing key in pkcs7.
/// </summary>
public InputList<ImmutableDictionary<string, object>> SigningKeys
{
get => _signingKeys ?? (_signingKeys = new InputList<ImmutableDictionary<string, object>>());
set => _signingKeys = value;
}
/// <summary>
/// Boolean. Indicates whether or not the client should use Auth0 rather than the IdP to perform Single Sign-On (SSO). True = Use Auth0.
/// </summary>
[Input("sso")]
public Input<bool>? Sso { get; set; }
/// <summary>
/// Boolean. Indicates whether or not SSO is disabled.
/// </summary>
[Input("ssoDisabled")]
public Input<bool>? SsoDisabled { get; set; }
/// <summary>
/// String. Defines the requested authentication method for the token endpoint. Options include `none` (public client without a client secret), `client_secret_post` (client uses HTTP POST parameters), `client_secret_basic` (client uses HTTP Basic).
/// </summary>
[Input("tokenEndpointAuthMethod")]
public Input<string>? TokenEndpointAuthMethod { get; set; }
[Input("webOrigins")]
private InputList<string>? _webOrigins;
/// <summary>
/// List(String). URLs that represent valid web origins for use with web message response mode.
/// </summary>
public InputList<string> WebOrigins
{
get => _webOrigins ?? (_webOrigins = new InputList<string>());
set => _webOrigins = value;
}
public ClientState()
{
Description = "Managed by Pulumi";
}
}
}