/
azurermWindowsFunctionApp.go
1774 lines (1770 loc) · 73.3 KB
/
azurermWindowsFunctionApp.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
package resource
import (
"encoding/json"
tfjson "github.com/hashicorp/terraform-json"
)
const azurermWindowsFunctionApp = `{
"block": {
"attributes": {
"app_settings": {
"description": "A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values.",
"description_kind": "plain",
"optional": true,
"type": [
"map",
"string"
]
},
"builtin_logging_enabled": {
"description": "Should built in logging be enabled. Configures ` + "`" + `AzureWebJobsDashboard` + "`" + ` app setting based on the configured storage setting",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"client_certificate_enabled": {
"description": "Should the function app use Client Certificates",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"client_certificate_exclusion_paths": {
"description": "Paths to exclude when using client certificates, separated by ;",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"client_certificate_mode": {
"description": "The mode of the Function App's client certificates requirement for incoming requests. Possible values are ` + "`" + `Required` + "`" + `, ` + "`" + `Optional` + "`" + `, and ` + "`" + `OptionalInteractiveUser` + "`" + ` ",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"content_share_force_disabled": {
"description": "Force disable the content share settings.",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"custom_domain_verification_id": {
"computed": true,
"description_kind": "plain",
"sensitive": true,
"type": "string"
},
"daily_memory_time_quota": {
"description": "The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans.",
"description_kind": "plain",
"optional": true,
"type": "number"
},
"default_hostname": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"enabled": {
"description": "Is the Windows Function App enabled.",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"ftp_publish_basic_authentication_enabled": {
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"functions_extension_version": {
"description": "The runtime version associated with the Function App.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"hosting_environment_id": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"https_only": {
"computed": true,
"description": "Can the Function App only be accessed via HTTPS?",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"id": {
"computed": true,
"description_kind": "plain",
"optional": true,
"type": "string"
},
"key_vault_reference_identity_id": {
"computed": true,
"description": "The User Assigned Identity to use for Key Vault access.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"kind": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"location": {
"description_kind": "plain",
"required": true,
"type": "string"
},
"name": {
"description": "Specifies the name of the Function App.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"outbound_ip_address_list": {
"computed": true,
"description_kind": "plain",
"type": [
"list",
"string"
]
},
"outbound_ip_addresses": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"possible_outbound_ip_address_list": {
"computed": true,
"description_kind": "plain",
"type": [
"list",
"string"
]
},
"possible_outbound_ip_addresses": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"public_network_access_enabled": {
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"resource_group_name": {
"description_kind": "plain",
"required": true,
"type": "string"
},
"service_plan_id": {
"description": "The ID of the App Service Plan within which to create this Function App",
"description_kind": "plain",
"required": true,
"type": "string"
},
"site_credential": {
"computed": true,
"description_kind": "plain",
"sensitive": true,
"type": [
"list",
[
"object",
{
"name": "string",
"password": "string"
}
]
]
},
"storage_account_access_key": {
"description": "The access key which will be used to access the storage account for the Function App.",
"description_kind": "plain",
"optional": true,
"sensitive": true,
"type": "string"
},
"storage_account_name": {
"description": "The backend storage account name which will be used by this Function App.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"storage_key_vault_secret_id": {
"description": "The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"storage_uses_managed_identity": {
"description": "Should the Function App use its Managed Identity to access storage?",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"tags": {
"description_kind": "plain",
"optional": true,
"type": [
"map",
"string"
]
},
"virtual_network_subnet_id": {
"description_kind": "plain",
"optional": true,
"type": "string"
},
"webdeploy_publish_basic_authentication_enabled": {
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"zip_deploy_file": {
"computed": true,
"description": "The local path and filename of the Zip packaged application to deploy to this Windows Function App. **Note:** Using this value requires ` + "`" + `WEBSITE_RUN_FROM_PACKAGE=1` + "`" + ` to be set on the App in ` + "`" + `app_settings` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
}
},
"block_types": {
"auth_settings": {
"block": {
"attributes": {
"additional_login_parameters": {
"description": "Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.",
"description_kind": "plain",
"optional": true,
"type": [
"map",
"string"
]
},
"allowed_external_redirect_urls": {
"computed": true,
"description": "Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"default_provider": {
"computed": true,
"description": "The default authentication provider to use when multiple providers are configured. Possible values include: ` + "`" + `AzureActiveDirectory` + "`" + `, ` + "`" + `Facebook` + "`" + `, ` + "`" + `Google` + "`" + `, ` + "`" + `MicrosoftAccount` + "`" + `, ` + "`" + `Twitter` + "`" + `, ` + "`" + `Github` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"enabled": {
"description": "Should the Authentication / Authorization feature be enabled?",
"description_kind": "plain",
"required": true,
"type": "bool"
},
"issuer": {
"description": "The OpenID Connect Issuer URI that represents the entity which issues access tokens.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"runtime_version": {
"computed": true,
"description": "The RuntimeVersion of the Authentication / Authorization feature in use.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"token_refresh_extension_hours": {
"description": "The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to ` + "`" + `72` + "`" + ` hours.",
"description_kind": "plain",
"optional": true,
"type": "number"
},
"token_store_enabled": {
"description": "Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to ` + "`" + `false` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"unauthenticated_client_action": {
"computed": true,
"description": "The action to take when an unauthenticated client attempts to access the app. Possible values include: ` + "`" + `RedirectToLoginPage` + "`" + `, ` + "`" + `AllowAnonymous` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
}
},
"block_types": {
"active_directory": {
"block": {
"attributes": {
"allowed_audiences": {
"description": "Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"client_id": {
"description": "The ID of the Client to use to authenticate with Azure Active Directory.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret": {
"description": "The Client Secret for the Client ID. Cannot be used with ` + "`" + `client_secret_setting_name` + "`" + `.",
"description_kind": "plain",
"optional": true,
"sensitive": true,
"type": "string"
},
"client_secret_setting_name": {
"description": "The App Setting name that contains the client secret of the Client. Cannot be used with ` + "`" + `client_secret` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"facebook": {
"block": {
"attributes": {
"app_id": {
"description": "The App ID of the Facebook app used for login.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"app_secret": {
"description": "The App Secret of the Facebook app used for Facebook Login. Cannot be specified with ` + "`" + `app_secret_setting_name` + "`" + `.",
"description_kind": "plain",
"optional": true,
"sensitive": true,
"type": "string"
},
"app_secret_setting_name": {
"description": "The app setting name that contains the ` + "`" + `app_secret` + "`" + ` value used for Facebook Login. Cannot be specified with ` + "`" + `app_secret` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"oauth_scopes": {
"description": "Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"github": {
"block": {
"attributes": {
"client_id": {
"description": "The ID of the GitHub app used for login.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret": {
"description": "The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with ` + "`" + `client_secret_setting_name` + "`" + `.",
"description_kind": "plain",
"optional": true,
"sensitive": true,
"type": "string"
},
"client_secret_setting_name": {
"description": "The app setting name that contains the ` + "`" + `client_secret` + "`" + ` value used for GitHub Login. Cannot be specified with ` + "`" + `client_secret` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"oauth_scopes": {
"description": "Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"google": {
"block": {
"attributes": {
"client_id": {
"description": "The OpenID Connect Client ID for the Google web application.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret": {
"description": "The client secret associated with the Google web application. Cannot be specified with ` + "`" + `client_secret_setting_name` + "`" + `.",
"description_kind": "plain",
"optional": true,
"sensitive": true,
"type": "string"
},
"client_secret_setting_name": {
"description": "The app setting name that contains the ` + "`" + `client_secret` + "`" + ` value used for Google Login. Cannot be specified with ` + "`" + `client_secret` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"oauth_scopes": {
"description": "Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"microsoft": {
"block": {
"attributes": {
"client_id": {
"description": "The OAuth 2.0 client ID that was created for the app used for authentication.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret": {
"description": "The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with ` + "`" + `client_secret_setting_name` + "`" + `.",
"description_kind": "plain",
"optional": true,
"sensitive": true,
"type": "string"
},
"client_secret_setting_name": {
"description": "The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with ` + "`" + `client_secret` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"oauth_scopes": {
"description": "The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, ` + "`" + `wl.basic` + "`" + ` is used as the default scope.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"twitter": {
"block": {
"attributes": {
"consumer_key": {
"description": "The OAuth 1.0a consumer key of the Twitter application used for sign-in.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"consumer_secret": {
"description": "The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with ` + "`" + `consumer_secret_setting_name` + "`" + `.",
"description_kind": "plain",
"optional": true,
"sensitive": true,
"type": "string"
},
"consumer_secret_setting_name": {
"description": "The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with ` + "`" + `consumer_secret` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"auth_settings_v2": {
"block": {
"attributes": {
"auth_enabled": {
"description": "Should the AuthV2 Settings be enabled. Defaults to ` + "`" + `false` + "`" + `",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"config_file_path": {
"description": "The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"default_provider": {
"description": "The Default Authentication Provider to use when the ` + "`" + `unauthenticated_action` + "`" + ` is set to ` + "`" + `RedirectToLoginPage` + "`" + `. Possible values include: ` + "`" + `apple` + "`" + `, ` + "`" + `azureactivedirectory` + "`" + `, ` + "`" + `facebook` + "`" + `, ` + "`" + `github` + "`" + `, ` + "`" + `google` + "`" + `, ` + "`" + `twitter` + "`" + ` and the ` + "`" + `name` + "`" + ` of your ` + "`" + `custom_oidc_v2` + "`" + ` provider.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"excluded_paths": {
"description": "The paths which should be excluded from the ` + "`" + `unauthenticated_action` + "`" + ` when it is set to ` + "`" + `RedirectToLoginPage` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"forward_proxy_convention": {
"description": "The convention used to determine the url of the request made. Possible values include ` + "`" + `ForwardProxyConventionNoProxy` + "`" + `, ` + "`" + `ForwardProxyConventionStandard` + "`" + `, ` + "`" + `ForwardProxyConventionCustom` + "`" + `. Defaults to ` + "`" + `ForwardProxyConventionNoProxy` + "`" + `",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"forward_proxy_custom_host_header_name": {
"description": "The name of the header containing the host of the request.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"forward_proxy_custom_scheme_header_name": {
"description": "The name of the header containing the scheme of the request.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"http_route_api_prefix": {
"description": "The prefix that should precede all the authentication and authorisation paths. Defaults to ` + "`" + `/.auth` + "`" + `",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"require_authentication": {
"description": "Should the authentication flow be used for all requests.",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"require_https": {
"description": "Should HTTPS be required on connections? Defaults to true.",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"runtime_version": {
"description": "The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to ` + "`" + `~1` + "`" + `",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"unauthenticated_action": {
"description": "The action to take for requests made without authentication. Possible values include ` + "`" + `RedirectToLoginPage` + "`" + `, ` + "`" + `AllowAnonymous` + "`" + `, ` + "`" + `Return401` + "`" + `, and ` + "`" + `Return403` + "`" + `. Defaults to ` + "`" + `RedirectToLoginPage` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
}
},
"block_types": {
"active_directory_v2": {
"block": {
"attributes": {
"allowed_applications": {
"description": "The list of allowed Applications for the Default Authorisation Policy.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"allowed_audiences": {
"description": "Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"allowed_groups": {
"description": "The list of allowed Group Names for the Default Authorisation Policy.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"allowed_identities": {
"description": "The list of allowed Identities for the Default Authorisation Policy.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"client_id": {
"description": "The ID of the Client to use to authenticate with Azure Active Directory.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret_certificate_thumbprint": {
"description": "The thumbprint of the certificate used for signing purposes.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"client_secret_setting_name": {
"description": "The App Setting name that contains the client secret of the Client.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"jwt_allowed_client_applications": {
"description": "A list of Allowed Client Applications in the JWT Claim.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"jwt_allowed_groups": {
"description": "A list of Allowed Groups in the JWT Claim.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"login_parameters": {
"description": "A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.",
"description_kind": "plain",
"optional": true,
"type": [
"map",
"string"
]
},
"tenant_auth_endpoint": {
"description": "The Azure Tenant Endpoint for the Authenticating Tenant. e.g. ` + "`" + `https://login.microsoftonline.com/v2.0/{tenant-guid}/` + "`" + `.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"www_authentication_disabled": {
"description": "Should the www-authenticate provider should be omitted from the request? Defaults to ` + "`" + `false` + "`" + `",
"description_kind": "plain",
"optional": true,
"type": "bool"
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"apple_v2": {
"block": {
"attributes": {
"client_id": {
"description": "The OpenID Connect Client ID for the Apple web application.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret_setting_name": {
"description": "The app setting name that contains the ` + "`" + `client_secret` + "`" + ` value used for Apple Login.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"login_scopes": {
"computed": true,
"description_kind": "plain",
"type": [
"list",
"string"
]
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"azure_static_web_app_v2": {
"block": {
"attributes": {
"client_id": {
"description": "The ID of the Client to use to authenticate with Azure Static Web App Authentication.",
"description_kind": "plain",
"required": true,
"type": "string"
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"custom_oidc_v2": {
"block": {
"attributes": {
"authorisation_endpoint": {
"computed": true,
"description": "The endpoint to make the Authorisation Request.",
"description_kind": "plain",
"type": "string"
},
"certification_uri": {
"computed": true,
"description": "The endpoint that provides the keys necessary to validate the token.",
"description_kind": "plain",
"type": "string"
},
"client_credential_method": {
"computed": true,
"description": "The Client Credential Method used. Currently the only supported value is ` + "`" + `ClientSecretPost` + "`" + `.",
"description_kind": "plain",
"type": "string"
},
"client_id": {
"description": "The ID of the Client to use to authenticate with this Custom OIDC.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret_setting_name": {
"computed": true,
"description": "The App Setting name that contains the secret for this Custom OIDC Client.",
"description_kind": "plain",
"type": "string"
},
"issuer_endpoint": {
"computed": true,
"description": "The endpoint that issued the Token.",
"description_kind": "plain",
"type": "string"
},
"name": {
"description": "The name of the Custom OIDC Authentication Provider.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"name_claim_type": {
"description": "The name of the claim that contains the users name.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"openid_configuration_endpoint": {
"description": "The endpoint that contains all the configuration endpoints for this Custom OIDC provider.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"scopes": {
"description": "The list of the scopes that should be requested while authenticating.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"token_endpoint": {
"computed": true,
"description": "The endpoint used to request a Token.",
"description_kind": "plain",
"type": "string"
}
},
"description_kind": "plain"
},
"nesting_mode": "list"
},
"facebook_v2": {
"block": {
"attributes": {
"app_id": {
"description": "The App ID of the Facebook app used for login.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"app_secret_setting_name": {
"description": "The app setting name that contains the ` + "`" + `app_secret` + "`" + ` value used for Facebook Login.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"graph_api_version": {
"computed": true,
"description": "The version of the Facebook API to be used while logging in.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"login_scopes": {
"description": "Specifies a list of scopes to be requested as part of Facebook Login authentication.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"github_v2": {
"block": {
"attributes": {
"client_id": {
"description": "The ID of the GitHub app used for login.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret_setting_name": {
"description": "The app setting name that contains the ` + "`" + `client_secret` + "`" + ` value used for GitHub Login.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"login_scopes": {
"description": "Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"google_v2": {
"block": {
"attributes": {
"allowed_audiences": {
"description": "Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"client_id": {
"description": "The OpenID Connect Client ID for the Google web application.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret_setting_name": {
"description": "The app setting name that contains the ` + "`" + `client_secret` + "`" + ` value used for Google Login.",
"description_kind": "plain",
"required": true,
"type": "string"
},
"login_scopes": {
"description": "Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
}
},
"description_kind": "plain"
},
"max_items": 1,
"nesting_mode": "list"
},
"login": {
"block": {
"attributes": {
"allowed_external_redirect_urls": {
"description": "External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.",
"description_kind": "plain",
"optional": true,
"type": [
"list",
"string"
]
},
"cookie_expiration_convention": {
"description": "The method by which cookies expire. Possible values include: ` + "`" + `FixedTime` + "`" + `, and ` + "`" + `IdentityProviderDerived` + "`" + `. Defaults to ` + "`" + `FixedTime` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"cookie_expiration_time": {
"description": "The time after the request is made when the session cookie should expire. Defaults to ` + "`" + `08:00:00` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"logout_endpoint": {
"description": "The endpoint to which logout requests should be made.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"nonce_expiration_time": {
"description": "The time after the request is made when the nonce should expire. Defaults to ` + "`" + `00:05:00` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"preserve_url_fragments_for_logins": {
"description": "Should the fragments from the request be preserved after the login request is made. Defaults to ` + "`" + `false` + "`" + `.",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"token_refresh_extension_time": {
"description": "The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to ` + "`" + `72` + "`" + ` hours.",
"description_kind": "plain",
"optional": true,
"type": "number"
},
"token_store_enabled": {
"description": "Should the Token Store configuration Enabled. Defaults to ` + "`" + `false` + "`" + `",
"description_kind": "plain",
"optional": true,
"type": "bool"
},
"token_store_path": {
"description": "The directory path in the App Filesystem in which the tokens will be stored.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"token_store_sas_setting_name": {
"description": "The name of the app setting which contains the SAS URL of the blob storage containing the tokens.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"validate_nonce": {
"description": "Should the nonce be validated while completing the login flow. Defaults to ` + "`" + `true` + "`" + `.",
"description_kind": "plain",