/
saml.go
1337 lines (1227 loc) · 63 KB
/
saml.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
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package app
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This resource allows you to create and configure a SAML Application.
//
// > If you receive the error `You do not have permission to access the feature
// you are requesting` contact support and
// request feature flag `ADVANCED_SSO` be applied to your org.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-okta/sdk/v3/go/okta/app"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := app.NewSaml(ctx, "example", &app.SamlArgs{
// AttributeStatements: app.SamlAttributeStatementArray{
// &app.SamlAttributeStatementArgs{
// FilterType: pulumi.String("REGEX"),
// FilterValue: pulumi.String(".*"),
// Name: pulumi.String("groups"),
// Type: pulumi.String("GROUP"),
// },
// },
// Audience: pulumi.String("https://example.com/audience"),
// AuthnContextClassRef: pulumi.String("urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"),
// Destination: pulumi.String("https://example.com"),
// DigestAlgorithm: pulumi.String("SHA256"),
// HonorForceAuthn: pulumi.Bool(false),
// Label: pulumi.String("example"),
// Recipient: pulumi.String("https://example.com"),
// ResponseSigned: pulumi.Bool(true),
// SignatureAlgorithm: pulumi.String("RSA_SHA256"),
// SsoUrl: pulumi.String("https://example.com"),
// SubjectNameIdFormat: pulumi.String("urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"),
// SubjectNameIdTemplate: pulumi.String("${user.userName}"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// ### With inline hook
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-okta/sdk/v3/go/okta/app"
// "github.com/pulumi/pulumi-okta/sdk/v3/go/okta/inline"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// testHook, err := inline.NewHook(ctx, "testHook", &inline.HookArgs{
// Status: pulumi.String("ACTIVE"),
// Type: pulumi.String("com.okta.saml.tokens.transform"),
// Version: pulumi.String("1.0.2"),
// Channel: pulumi.StringMap{
// "type": pulumi.String("HTTP"),
// "version": pulumi.String("1.0.0"),
// "uri": pulumi.String("https://example.com/test1"),
// "method": pulumi.String("POST"),
// },
// Auth: pulumi.StringMap{
// "key": pulumi.String("Authorization"),
// "type": pulumi.String("HEADER"),
// "value": pulumi.String("secret"),
// },
// })
// if err != nil {
// return err
// }
// _, err = app.NewSaml(ctx, "testSaml", &app.SamlArgs{
// Label: pulumi.String("testAcc_replace_with_uuid"),
// SsoUrl: pulumi.String("https://google.com"),
// Recipient: pulumi.String("https://here.com"),
// Destination: pulumi.String("https://its-about-the-journey.com"),
// Audience: pulumi.String("https://audience.com"),
// SubjectNameIdTemplate: pulumi.String("${user.userName}"),
// SubjectNameIdFormat: pulumi.String("urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"),
// ResponseSigned: pulumi.Bool(true),
// SignatureAlgorithm: pulumi.String("RSA_SHA256"),
// DigestAlgorithm: pulumi.String("SHA256"),
// HonorForceAuthn: pulumi.Bool(false),
// AuthnContextClassRef: pulumi.String("urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"),
// InlineHookId: testHook.ID(),
// AttributeStatements: app.SamlAttributeStatementArray{
// &app.SamlAttributeStatementArgs{
// Type: pulumi.String("GROUP"),
// Name: pulumi.String("groups"),
// FilterType: pulumi.String("REGEX"),
// FilterValue: pulumi.String(".*"),
// },
// },
// }, pulumi.DependsOn([]pulumi.Resource{
// testHook,
// }))
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// ### Pre-configured app with SAML 1.1 sign-on mode
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-okta/sdk/v3/go/okta/app"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := app.NewSaml(ctx, "test", &app.SamlArgs{
// AppSettingsJson: pulumi.String("{\n \"groupFilter\": \"app1.*\",\n \"siteURL\": \"https://www.okta.com\"\n}\n\n"),
// Label: pulumi.String("SharePoint (On-Premise)"),
// PreconfiguredApp: pulumi.String("sharepoint_onpremise"),
// SamlVersion: pulumi.String("1.1"),
// Status: pulumi.String("ACTIVE"),
// UserNameTemplate: pulumi.String("${source.login}"),
// UserNameTemplateType: pulumi.String("BUILT_IN"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// ### Pre-configured app with SAML 1.1 sign-on mode, `appSettingsJson` and `appLinksJson`
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-okta/sdk/v3/go/okta/app"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := app.NewSaml(ctx, "office365", &app.SamlArgs{
// AppLinksJson: pulumi.String(" {\n \"calendar\": false,\n \"crm\": false,\n \"delve\": false,\n \"excel\": false,\n \"forms\": false,\n \"mail\": false,\n \"newsfeed\": false,\n \"onedrive\": false,\n \"people\": false,\n \"planner\": false,\n \"powerbi\": false,\n \"powerpoint\": false,\n \"sites\": false,\n \"sway\": false,\n \"tasks\": false,\n \"teams\": false,\n \"video\": false,\n \"word\": false,\n \"yammer\": false,\n \"login\": true\n }\n\n"),
// AppSettingsJson: pulumi.String(" {\n \"wsFedConfigureType\": \"AUTO\",\n \"windowsTransportEnabled\": false,\n \"domain\": \"okta.com\",\n \"msftTenant\": \"okta\",\n \"domains\": [],\n \"requireAdminConsent\": false\n }\n\n"),
// Label: pulumi.String("Microsoft Office 365"),
// PreconfiguredApp: pulumi.String("office365"),
// SamlVersion: pulumi.String("1.1"),
// Status: pulumi.String("ACTIVE"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// A SAML App can be imported via the Okta ID.
//
// ```sh
//
// $ pulumi import okta:app/saml:Saml example <app id>
//
// ```
//
// It's also possible to import app without groups or/and users. In this case ID may look like this
//
// ```sh
//
// $ pulumi import okta:app/saml:Saml example <app id>/skip_users
//
// ```
//
// ```sh
//
// $ pulumi import okta:app/saml:Saml example <app id>/skip_users/skip_groups
//
// ```
//
// ```sh
//
// $ pulumi import okta:app/saml:Saml example <app id>/skip_groups
//
// ```
type Saml struct {
pulumi.CustomResourceState
// Custom error page URL.
AccessibilityErrorRedirectUrl pulumi.StringPtrOutput `pulumi:"accessibilityErrorRedirectUrl"`
// Custom login page for this application.
AccessibilityLoginRedirectUrl pulumi.StringPtrOutput `pulumi:"accessibilityLoginRedirectUrl"`
// Enable self-service. Default is: `false`.
AccessibilitySelfService pulumi.BoolPtrOutput `pulumi:"accessibilitySelfService"`
// An array of ACS endpoints. You can configure a maximum of 100 endpoints.
AcsEndpoints pulumi.StringArrayOutput `pulumi:"acsEndpoints"`
// Application notes for admins.
AdminNote pulumi.StringPtrOutput `pulumi:"adminNote"`
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson pulumi.StringPtrOutput `pulumi:"appLinksJson"`
// Application settings in JSON format.
AppSettingsJson pulumi.StringPtrOutput `pulumi:"appSettingsJson"`
// Determines whether the SAML assertion is digitally signed.
AssertionSigned pulumi.BoolPtrOutput `pulumi:"assertionSigned"`
// List of SAML Attribute statements.
AttributeStatements SamlAttributeStatementArrayOutput `pulumi:"attributeStatements"`
// Audience Restriction
Audience pulumi.StringPtrOutput `pulumi:"audience"`
// The ID of the associated `appSignonPolicy`. If this property is removed from the application the `default` sign-on-policy will be associated with this application.
AuthenticationPolicy pulumi.StringPtrOutput `pulumi:"authenticationPolicy"`
// Identifies the SAML authentication context class for the assertion’s authentication statement
AuthnContextClassRef pulumi.StringPtrOutput `pulumi:"authnContextClassRef"`
// Display auto submit toolbar. Default is: `false`
AutoSubmitToolbar pulumi.BoolPtrOutput `pulumi:"autoSubmitToolbar"`
// The raw signing certificate.
Certificate pulumi.StringOutput `pulumi:"certificate"`
// Identifies a specific application resource in an IDP initiated SSO scenario.
DefaultRelayState pulumi.StringPtrOutput `pulumi:"defaultRelayState"`
// Identifies the location where the SAML response is intended to be sent inside of the SAML assertion
Destination pulumi.StringPtrOutput `pulumi:"destination"`
// Determines the digest algorithm used to digitally sign the SAML assertion and response
DigestAlgorithm pulumi.StringPtrOutput `pulumi:"digestAlgorithm"`
// Url that can be used to embed this application into another portal.
EmbedUrl pulumi.StringOutput `pulumi:"embedUrl"`
// Application notes for end users.
EnduserNote pulumi.StringPtrOutput `pulumi:"enduserNote"`
// Entity ID, the ID portion of the `entityUrl`.
EntityKey pulumi.StringOutput `pulumi:"entityKey"`
// Entity URL for instance [http://www.okta.com/exk1fcia6d6EMsf331d8](http://www.okta.com/exk1fcia6d6EMsf331d8).
EntityUrl pulumi.StringOutput `pulumi:"entityUrl"`
// features enabled. Notice: you can't currently configure provisioning features via the API.
Features pulumi.StringArrayOutput `pulumi:"features"`
// Groups associated with the application.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups pulumi.StringArrayOutput `pulumi:"groups"`
// Do not display application icon on mobile app. Default is: `false`
HideIos pulumi.BoolPtrOutput `pulumi:"hideIos"`
// Do not display application icon to users. Default is: `false`
HideWeb pulumi.BoolPtrOutput `pulumi:"hideWeb"`
// Prompt user to re-authenticate if SP asks for it. Default is: `false`
HonorForceAuthn pulumi.BoolPtrOutput `pulumi:"honorForceAuthn"`
// `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Post` location from the SAML metadata.
HttpPostBinding pulumi.StringOutput `pulumi:"httpPostBinding"`
// `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect` location from the SAML metadata.
HttpRedirectBinding pulumi.StringOutput `pulumi:"httpRedirectBinding"`
// SAML issuer ID.
IdpIssuer pulumi.StringPtrOutput `pulumi:"idpIssuer"`
// _Early Access Property_. Enables [Federation Broker Mode](https://help.okta.com/en/prod/Content/Topics/Apps/apps-fbm-enable.htm). When this mode is enabled, `users` and `groups` arguments are ignored.
ImplicitAssignment pulumi.BoolPtrOutput `pulumi:"implicitAssignment"`
// Saml Inline Hook associated with the application.
InlineHookId pulumi.StringPtrOutput `pulumi:"inlineHookId"`
// Certificate key ID.
KeyId pulumi.StringOutput `pulumi:"keyId"`
// Certificate name. This modulates the rotation of keys. New name == new key. Required to be set with `keyYearsValid`.
KeyName pulumi.StringPtrOutput `pulumi:"keyName"`
// Number of years the certificate is valid (2 - 10 years).
KeyYearsValid pulumi.IntPtrOutput `pulumi:"keyYearsValid"`
// An array of all key credentials for the application. Format of each entry is as follows:
Keys SamlKeyArrayOutput `pulumi:"keys"`
// label of application.
Label pulumi.StringOutput `pulumi:"label"`
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo pulumi.StringPtrOutput `pulumi:"logo"`
// Direct link of application logo.
LogoUrl pulumi.StringOutput `pulumi:"logoUrl"`
// The raw SAML metadata in XML.
Metadata pulumi.StringOutput `pulumi:"metadata"`
// SAML xml metadata URL.
MetadataUrl pulumi.StringOutput `pulumi:"metadataUrl"`
// The name of the attribute statement.
Name pulumi.StringOutput `pulumi:"name"`
// name of application from the Okta Integration Network, if not included a custom app will be created. If not provided the following arguments are required:
PreconfiguredApp pulumi.StringPtrOutput `pulumi:"preconfiguredApp"`
// The location where the app may present the SAML assertion.
Recipient pulumi.StringPtrOutput `pulumi:"recipient"`
// Denotes whether the request is compressed or not.
RequestCompressed pulumi.BoolPtrOutput `pulumi:"requestCompressed"`
// Determines whether the SAML auth response message is digitally signed.
ResponseSigned pulumi.BoolPtrOutput `pulumi:"responseSigned"`
// SAML Signed Request enabled
SamlSignedRequestEnabled pulumi.BoolPtrOutput `pulumi:"samlSignedRequestEnabled"`
// SAML version for the app's sign-on mode. Valid values are: `"2.0"` or `"1.1"`. Default is `"2.0"`.
SamlVersion pulumi.StringPtrOutput `pulumi:"samlVersion"`
// Sign-on mode of application.
SignOnMode pulumi.StringOutput `pulumi:"signOnMode"`
// Signature algorithm used ot digitally sign the assertion and response.
SignatureAlgorithm pulumi.StringPtrOutput `pulumi:"signatureAlgorithm"`
// x509 encoded certificate that the Service Provider uses to sign Single Logout requests. Note: should be provided without `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`, see [official documentation](https://developer.okta.com/docs/reference/api/apps/#service-provider-certificate).
SingleLogoutCertificate pulumi.StringPtrOutput `pulumi:"singleLogoutCertificate"`
// The issuer of the Service Provider that generates the Single Logout request.
SingleLogoutIssuer pulumi.StringPtrOutput `pulumi:"singleLogoutIssuer"`
// The location where the logout response is sent.
SingleLogoutUrl pulumi.StringPtrOutput `pulumi:"singleLogoutUrl"`
// Indicator that allows the app to skip `groups` sync (it can also be provided during import). Default is `false`.
SkipGroups pulumi.BoolPtrOutput `pulumi:"skipGroups"`
// Indicator that allows the app to skip `users` sync (it can also be provided during import). Default is `false`.
SkipUsers pulumi.BoolPtrOutput `pulumi:"skipUsers"`
// SAML service provider issuer.
SpIssuer pulumi.StringPtrOutput `pulumi:"spIssuer"`
// Single Sign-on Url.
SsoUrl pulumi.StringPtrOutput `pulumi:"ssoUrl"`
// status of application.
Status pulumi.StringPtrOutput `pulumi:"status"`
// Identifies the SAML processing rules.
SubjectNameIdFormat pulumi.StringPtrOutput `pulumi:"subjectNameIdFormat"`
// Template for app user's username when a user is assigned to the app.
SubjectNameIdTemplate pulumi.StringPtrOutput `pulumi:"subjectNameIdTemplate"`
// Username template. Default is: `"${source.login}"`
UserNameTemplate pulumi.StringPtrOutput `pulumi:"userNameTemplate"`
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus pulumi.StringPtrOutput `pulumi:"userNameTemplatePushStatus"`
// Username template suffix.
UserNameTemplateSuffix pulumi.StringPtrOutput `pulumi:"userNameTemplateSuffix"`
// Username template type. Default is: `"BUILT_IN"`.
UserNameTemplateType pulumi.StringPtrOutput `pulumi:"userNameTemplateType"`
// Users associated with the application.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users SamlUserArrayOutput `pulumi:"users"`
}
// NewSaml registers a new resource with the given unique name, arguments, and options.
func NewSaml(ctx *pulumi.Context,
name string, args *SamlArgs, opts ...pulumi.ResourceOption) (*Saml, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Label == nil {
return nil, errors.New("invalid value for required argument 'Label'")
}
var resource Saml
err := ctx.RegisterResource("okta:app/saml:Saml", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSaml gets an existing Saml resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetSaml(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SamlState, opts ...pulumi.ResourceOption) (*Saml, error) {
var resource Saml
err := ctx.ReadResource("okta:app/saml:Saml", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Saml resources.
type samlState struct {
// Custom error page URL.
AccessibilityErrorRedirectUrl *string `pulumi:"accessibilityErrorRedirectUrl"`
// Custom login page for this application.
AccessibilityLoginRedirectUrl *string `pulumi:"accessibilityLoginRedirectUrl"`
// Enable self-service. Default is: `false`.
AccessibilitySelfService *bool `pulumi:"accessibilitySelfService"`
// An array of ACS endpoints. You can configure a maximum of 100 endpoints.
AcsEndpoints []string `pulumi:"acsEndpoints"`
// Application notes for admins.
AdminNote *string `pulumi:"adminNote"`
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson *string `pulumi:"appLinksJson"`
// Application settings in JSON format.
AppSettingsJson *string `pulumi:"appSettingsJson"`
// Determines whether the SAML assertion is digitally signed.
AssertionSigned *bool `pulumi:"assertionSigned"`
// List of SAML Attribute statements.
AttributeStatements []SamlAttributeStatement `pulumi:"attributeStatements"`
// Audience Restriction
Audience *string `pulumi:"audience"`
// The ID of the associated `appSignonPolicy`. If this property is removed from the application the `default` sign-on-policy will be associated with this application.
AuthenticationPolicy *string `pulumi:"authenticationPolicy"`
// Identifies the SAML authentication context class for the assertion’s authentication statement
AuthnContextClassRef *string `pulumi:"authnContextClassRef"`
// Display auto submit toolbar. Default is: `false`
AutoSubmitToolbar *bool `pulumi:"autoSubmitToolbar"`
// The raw signing certificate.
Certificate *string `pulumi:"certificate"`
// Identifies a specific application resource in an IDP initiated SSO scenario.
DefaultRelayState *string `pulumi:"defaultRelayState"`
// Identifies the location where the SAML response is intended to be sent inside of the SAML assertion
Destination *string `pulumi:"destination"`
// Determines the digest algorithm used to digitally sign the SAML assertion and response
DigestAlgorithm *string `pulumi:"digestAlgorithm"`
// Url that can be used to embed this application into another portal.
EmbedUrl *string `pulumi:"embedUrl"`
// Application notes for end users.
EnduserNote *string `pulumi:"enduserNote"`
// Entity ID, the ID portion of the `entityUrl`.
EntityKey *string `pulumi:"entityKey"`
// Entity URL for instance [http://www.okta.com/exk1fcia6d6EMsf331d8](http://www.okta.com/exk1fcia6d6EMsf331d8).
EntityUrl *string `pulumi:"entityUrl"`
// features enabled. Notice: you can't currently configure provisioning features via the API.
Features []string `pulumi:"features"`
// Groups associated with the application.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups []string `pulumi:"groups"`
// Do not display application icon on mobile app. Default is: `false`
HideIos *bool `pulumi:"hideIos"`
// Do not display application icon to users. Default is: `false`
HideWeb *bool `pulumi:"hideWeb"`
// Prompt user to re-authenticate if SP asks for it. Default is: `false`
HonorForceAuthn *bool `pulumi:"honorForceAuthn"`
// `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Post` location from the SAML metadata.
HttpPostBinding *string `pulumi:"httpPostBinding"`
// `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect` location from the SAML metadata.
HttpRedirectBinding *string `pulumi:"httpRedirectBinding"`
// SAML issuer ID.
IdpIssuer *string `pulumi:"idpIssuer"`
// _Early Access Property_. Enables [Federation Broker Mode](https://help.okta.com/en/prod/Content/Topics/Apps/apps-fbm-enable.htm). When this mode is enabled, `users` and `groups` arguments are ignored.
ImplicitAssignment *bool `pulumi:"implicitAssignment"`
// Saml Inline Hook associated with the application.
InlineHookId *string `pulumi:"inlineHookId"`
// Certificate key ID.
KeyId *string `pulumi:"keyId"`
// Certificate name. This modulates the rotation of keys. New name == new key. Required to be set with `keyYearsValid`.
KeyName *string `pulumi:"keyName"`
// Number of years the certificate is valid (2 - 10 years).
KeyYearsValid *int `pulumi:"keyYearsValid"`
// An array of all key credentials for the application. Format of each entry is as follows:
Keys []SamlKey `pulumi:"keys"`
// label of application.
Label *string `pulumi:"label"`
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo *string `pulumi:"logo"`
// Direct link of application logo.
LogoUrl *string `pulumi:"logoUrl"`
// The raw SAML metadata in XML.
Metadata *string `pulumi:"metadata"`
// SAML xml metadata URL.
MetadataUrl *string `pulumi:"metadataUrl"`
// The name of the attribute statement.
Name *string `pulumi:"name"`
// name of application from the Okta Integration Network, if not included a custom app will be created. If not provided the following arguments are required:
PreconfiguredApp *string `pulumi:"preconfiguredApp"`
// The location where the app may present the SAML assertion.
Recipient *string `pulumi:"recipient"`
// Denotes whether the request is compressed or not.
RequestCompressed *bool `pulumi:"requestCompressed"`
// Determines whether the SAML auth response message is digitally signed.
ResponseSigned *bool `pulumi:"responseSigned"`
// SAML Signed Request enabled
SamlSignedRequestEnabled *bool `pulumi:"samlSignedRequestEnabled"`
// SAML version for the app's sign-on mode. Valid values are: `"2.0"` or `"1.1"`. Default is `"2.0"`.
SamlVersion *string `pulumi:"samlVersion"`
// Sign-on mode of application.
SignOnMode *string `pulumi:"signOnMode"`
// Signature algorithm used ot digitally sign the assertion and response.
SignatureAlgorithm *string `pulumi:"signatureAlgorithm"`
// x509 encoded certificate that the Service Provider uses to sign Single Logout requests. Note: should be provided without `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`, see [official documentation](https://developer.okta.com/docs/reference/api/apps/#service-provider-certificate).
SingleLogoutCertificate *string `pulumi:"singleLogoutCertificate"`
// The issuer of the Service Provider that generates the Single Logout request.
SingleLogoutIssuer *string `pulumi:"singleLogoutIssuer"`
// The location where the logout response is sent.
SingleLogoutUrl *string `pulumi:"singleLogoutUrl"`
// Indicator that allows the app to skip `groups` sync (it can also be provided during import). Default is `false`.
SkipGroups *bool `pulumi:"skipGroups"`
// Indicator that allows the app to skip `users` sync (it can also be provided during import). Default is `false`.
SkipUsers *bool `pulumi:"skipUsers"`
// SAML service provider issuer.
SpIssuer *string `pulumi:"spIssuer"`
// Single Sign-on Url.
SsoUrl *string `pulumi:"ssoUrl"`
// status of application.
Status *string `pulumi:"status"`
// Identifies the SAML processing rules.
SubjectNameIdFormat *string `pulumi:"subjectNameIdFormat"`
// Template for app user's username when a user is assigned to the app.
SubjectNameIdTemplate *string `pulumi:"subjectNameIdTemplate"`
// Username template. Default is: `"${source.login}"`
UserNameTemplate *string `pulumi:"userNameTemplate"`
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus *string `pulumi:"userNameTemplatePushStatus"`
// Username template suffix.
UserNameTemplateSuffix *string `pulumi:"userNameTemplateSuffix"`
// Username template type. Default is: `"BUILT_IN"`.
UserNameTemplateType *string `pulumi:"userNameTemplateType"`
// Users associated with the application.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users []SamlUser `pulumi:"users"`
}
type SamlState struct {
// Custom error page URL.
AccessibilityErrorRedirectUrl pulumi.StringPtrInput
// Custom login page for this application.
AccessibilityLoginRedirectUrl pulumi.StringPtrInput
// Enable self-service. Default is: `false`.
AccessibilitySelfService pulumi.BoolPtrInput
// An array of ACS endpoints. You can configure a maximum of 100 endpoints.
AcsEndpoints pulumi.StringArrayInput
// Application notes for admins.
AdminNote pulumi.StringPtrInput
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson pulumi.StringPtrInput
// Application settings in JSON format.
AppSettingsJson pulumi.StringPtrInput
// Determines whether the SAML assertion is digitally signed.
AssertionSigned pulumi.BoolPtrInput
// List of SAML Attribute statements.
AttributeStatements SamlAttributeStatementArrayInput
// Audience Restriction
Audience pulumi.StringPtrInput
// The ID of the associated `appSignonPolicy`. If this property is removed from the application the `default` sign-on-policy will be associated with this application.
AuthenticationPolicy pulumi.StringPtrInput
// Identifies the SAML authentication context class for the assertion’s authentication statement
AuthnContextClassRef pulumi.StringPtrInput
// Display auto submit toolbar. Default is: `false`
AutoSubmitToolbar pulumi.BoolPtrInput
// The raw signing certificate.
Certificate pulumi.StringPtrInput
// Identifies a specific application resource in an IDP initiated SSO scenario.
DefaultRelayState pulumi.StringPtrInput
// Identifies the location where the SAML response is intended to be sent inside of the SAML assertion
Destination pulumi.StringPtrInput
// Determines the digest algorithm used to digitally sign the SAML assertion and response
DigestAlgorithm pulumi.StringPtrInput
// Url that can be used to embed this application into another portal.
EmbedUrl pulumi.StringPtrInput
// Application notes for end users.
EnduserNote pulumi.StringPtrInput
// Entity ID, the ID portion of the `entityUrl`.
EntityKey pulumi.StringPtrInput
// Entity URL for instance [http://www.okta.com/exk1fcia6d6EMsf331d8](http://www.okta.com/exk1fcia6d6EMsf331d8).
EntityUrl pulumi.StringPtrInput
// features enabled. Notice: you can't currently configure provisioning features via the API.
Features pulumi.StringArrayInput
// Groups associated with the application.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups pulumi.StringArrayInput
// Do not display application icon on mobile app. Default is: `false`
HideIos pulumi.BoolPtrInput
// Do not display application icon to users. Default is: `false`
HideWeb pulumi.BoolPtrInput
// Prompt user to re-authenticate if SP asks for it. Default is: `false`
HonorForceAuthn pulumi.BoolPtrInput
// `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Post` location from the SAML metadata.
HttpPostBinding pulumi.StringPtrInput
// `urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect` location from the SAML metadata.
HttpRedirectBinding pulumi.StringPtrInput
// SAML issuer ID.
IdpIssuer pulumi.StringPtrInput
// _Early Access Property_. Enables [Federation Broker Mode](https://help.okta.com/en/prod/Content/Topics/Apps/apps-fbm-enable.htm). When this mode is enabled, `users` and `groups` arguments are ignored.
ImplicitAssignment pulumi.BoolPtrInput
// Saml Inline Hook associated with the application.
InlineHookId pulumi.StringPtrInput
// Certificate key ID.
KeyId pulumi.StringPtrInput
// Certificate name. This modulates the rotation of keys. New name == new key. Required to be set with `keyYearsValid`.
KeyName pulumi.StringPtrInput
// Number of years the certificate is valid (2 - 10 years).
KeyYearsValid pulumi.IntPtrInput
// An array of all key credentials for the application. Format of each entry is as follows:
Keys SamlKeyArrayInput
// label of application.
Label pulumi.StringPtrInput
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo pulumi.StringPtrInput
// Direct link of application logo.
LogoUrl pulumi.StringPtrInput
// The raw SAML metadata in XML.
Metadata pulumi.StringPtrInput
// SAML xml metadata URL.
MetadataUrl pulumi.StringPtrInput
// The name of the attribute statement.
Name pulumi.StringPtrInput
// name of application from the Okta Integration Network, if not included a custom app will be created. If not provided the following arguments are required:
PreconfiguredApp pulumi.StringPtrInput
// The location where the app may present the SAML assertion.
Recipient pulumi.StringPtrInput
// Denotes whether the request is compressed or not.
RequestCompressed pulumi.BoolPtrInput
// Determines whether the SAML auth response message is digitally signed.
ResponseSigned pulumi.BoolPtrInput
// SAML Signed Request enabled
SamlSignedRequestEnabled pulumi.BoolPtrInput
// SAML version for the app's sign-on mode. Valid values are: `"2.0"` or `"1.1"`. Default is `"2.0"`.
SamlVersion pulumi.StringPtrInput
// Sign-on mode of application.
SignOnMode pulumi.StringPtrInput
// Signature algorithm used ot digitally sign the assertion and response.
SignatureAlgorithm pulumi.StringPtrInput
// x509 encoded certificate that the Service Provider uses to sign Single Logout requests. Note: should be provided without `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`, see [official documentation](https://developer.okta.com/docs/reference/api/apps/#service-provider-certificate).
SingleLogoutCertificate pulumi.StringPtrInput
// The issuer of the Service Provider that generates the Single Logout request.
SingleLogoutIssuer pulumi.StringPtrInput
// The location where the logout response is sent.
SingleLogoutUrl pulumi.StringPtrInput
// Indicator that allows the app to skip `groups` sync (it can also be provided during import). Default is `false`.
SkipGroups pulumi.BoolPtrInput
// Indicator that allows the app to skip `users` sync (it can also be provided during import). Default is `false`.
SkipUsers pulumi.BoolPtrInput
// SAML service provider issuer.
SpIssuer pulumi.StringPtrInput
// Single Sign-on Url.
SsoUrl pulumi.StringPtrInput
// status of application.
Status pulumi.StringPtrInput
// Identifies the SAML processing rules.
SubjectNameIdFormat pulumi.StringPtrInput
// Template for app user's username when a user is assigned to the app.
SubjectNameIdTemplate pulumi.StringPtrInput
// Username template. Default is: `"${source.login}"`
UserNameTemplate pulumi.StringPtrInput
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus pulumi.StringPtrInput
// Username template suffix.
UserNameTemplateSuffix pulumi.StringPtrInput
// Username template type. Default is: `"BUILT_IN"`.
UserNameTemplateType pulumi.StringPtrInput
// Users associated with the application.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users SamlUserArrayInput
}
func (SamlState) ElementType() reflect.Type {
return reflect.TypeOf((*samlState)(nil)).Elem()
}
type samlArgs struct {
// Custom error page URL.
AccessibilityErrorRedirectUrl *string `pulumi:"accessibilityErrorRedirectUrl"`
// Custom login page for this application.
AccessibilityLoginRedirectUrl *string `pulumi:"accessibilityLoginRedirectUrl"`
// Enable self-service. Default is: `false`.
AccessibilitySelfService *bool `pulumi:"accessibilitySelfService"`
// An array of ACS endpoints. You can configure a maximum of 100 endpoints.
AcsEndpoints []string `pulumi:"acsEndpoints"`
// Application notes for admins.
AdminNote *string `pulumi:"adminNote"`
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson *string `pulumi:"appLinksJson"`
// Application settings in JSON format.
AppSettingsJson *string `pulumi:"appSettingsJson"`
// Determines whether the SAML assertion is digitally signed.
AssertionSigned *bool `pulumi:"assertionSigned"`
// List of SAML Attribute statements.
AttributeStatements []SamlAttributeStatement `pulumi:"attributeStatements"`
// Audience Restriction
Audience *string `pulumi:"audience"`
// The ID of the associated `appSignonPolicy`. If this property is removed from the application the `default` sign-on-policy will be associated with this application.
AuthenticationPolicy *string `pulumi:"authenticationPolicy"`
// Identifies the SAML authentication context class for the assertion’s authentication statement
AuthnContextClassRef *string `pulumi:"authnContextClassRef"`
// Display auto submit toolbar. Default is: `false`
AutoSubmitToolbar *bool `pulumi:"autoSubmitToolbar"`
// Identifies a specific application resource in an IDP initiated SSO scenario.
DefaultRelayState *string `pulumi:"defaultRelayState"`
// Identifies the location where the SAML response is intended to be sent inside of the SAML assertion
Destination *string `pulumi:"destination"`
// Determines the digest algorithm used to digitally sign the SAML assertion and response
DigestAlgorithm *string `pulumi:"digestAlgorithm"`
// Application notes for end users.
EnduserNote *string `pulumi:"enduserNote"`
// Groups associated with the application.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups []string `pulumi:"groups"`
// Do not display application icon on mobile app. Default is: `false`
HideIos *bool `pulumi:"hideIos"`
// Do not display application icon to users. Default is: `false`
HideWeb *bool `pulumi:"hideWeb"`
// Prompt user to re-authenticate if SP asks for it. Default is: `false`
HonorForceAuthn *bool `pulumi:"honorForceAuthn"`
// SAML issuer ID.
IdpIssuer *string `pulumi:"idpIssuer"`
// _Early Access Property_. Enables [Federation Broker Mode](https://help.okta.com/en/prod/Content/Topics/Apps/apps-fbm-enable.htm). When this mode is enabled, `users` and `groups` arguments are ignored.
ImplicitAssignment *bool `pulumi:"implicitAssignment"`
// Saml Inline Hook associated with the application.
InlineHookId *string `pulumi:"inlineHookId"`
// Certificate name. This modulates the rotation of keys. New name == new key. Required to be set with `keyYearsValid`.
KeyName *string `pulumi:"keyName"`
// Number of years the certificate is valid (2 - 10 years).
KeyYearsValid *int `pulumi:"keyYearsValid"`
// label of application.
Label string `pulumi:"label"`
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo *string `pulumi:"logo"`
// name of application from the Okta Integration Network, if not included a custom app will be created. If not provided the following arguments are required:
PreconfiguredApp *string `pulumi:"preconfiguredApp"`
// The location where the app may present the SAML assertion.
Recipient *string `pulumi:"recipient"`
// Denotes whether the request is compressed or not.
RequestCompressed *bool `pulumi:"requestCompressed"`
// Determines whether the SAML auth response message is digitally signed.
ResponseSigned *bool `pulumi:"responseSigned"`
// SAML Signed Request enabled
SamlSignedRequestEnabled *bool `pulumi:"samlSignedRequestEnabled"`
// SAML version for the app's sign-on mode. Valid values are: `"2.0"` or `"1.1"`. Default is `"2.0"`.
SamlVersion *string `pulumi:"samlVersion"`
// Signature algorithm used ot digitally sign the assertion and response.
SignatureAlgorithm *string `pulumi:"signatureAlgorithm"`
// x509 encoded certificate that the Service Provider uses to sign Single Logout requests. Note: should be provided without `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`, see [official documentation](https://developer.okta.com/docs/reference/api/apps/#service-provider-certificate).
SingleLogoutCertificate *string `pulumi:"singleLogoutCertificate"`
// The issuer of the Service Provider that generates the Single Logout request.
SingleLogoutIssuer *string `pulumi:"singleLogoutIssuer"`
// The location where the logout response is sent.
SingleLogoutUrl *string `pulumi:"singleLogoutUrl"`
// Indicator that allows the app to skip `groups` sync (it can also be provided during import). Default is `false`.
SkipGroups *bool `pulumi:"skipGroups"`
// Indicator that allows the app to skip `users` sync (it can also be provided during import). Default is `false`.
SkipUsers *bool `pulumi:"skipUsers"`
// SAML service provider issuer.
SpIssuer *string `pulumi:"spIssuer"`
// Single Sign-on Url.
SsoUrl *string `pulumi:"ssoUrl"`
// status of application.
Status *string `pulumi:"status"`
// Identifies the SAML processing rules.
SubjectNameIdFormat *string `pulumi:"subjectNameIdFormat"`
// Template for app user's username when a user is assigned to the app.
SubjectNameIdTemplate *string `pulumi:"subjectNameIdTemplate"`
// Username template. Default is: `"${source.login}"`
UserNameTemplate *string `pulumi:"userNameTemplate"`
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus *string `pulumi:"userNameTemplatePushStatus"`
// Username template suffix.
UserNameTemplateSuffix *string `pulumi:"userNameTemplateSuffix"`
// Username template type. Default is: `"BUILT_IN"`.
UserNameTemplateType *string `pulumi:"userNameTemplateType"`
// Users associated with the application.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users []SamlUser `pulumi:"users"`
}
// The set of arguments for constructing a Saml resource.
type SamlArgs struct {
// Custom error page URL.
AccessibilityErrorRedirectUrl pulumi.StringPtrInput
// Custom login page for this application.
AccessibilityLoginRedirectUrl pulumi.StringPtrInput
// Enable self-service. Default is: `false`.
AccessibilitySelfService pulumi.BoolPtrInput
// An array of ACS endpoints. You can configure a maximum of 100 endpoints.
AcsEndpoints pulumi.StringArrayInput
// Application notes for admins.
AdminNote pulumi.StringPtrInput
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson pulumi.StringPtrInput
// Application settings in JSON format.
AppSettingsJson pulumi.StringPtrInput
// Determines whether the SAML assertion is digitally signed.
AssertionSigned pulumi.BoolPtrInput
// List of SAML Attribute statements.
AttributeStatements SamlAttributeStatementArrayInput
// Audience Restriction
Audience pulumi.StringPtrInput
// The ID of the associated `appSignonPolicy`. If this property is removed from the application the `default` sign-on-policy will be associated with this application.
AuthenticationPolicy pulumi.StringPtrInput
// Identifies the SAML authentication context class for the assertion’s authentication statement
AuthnContextClassRef pulumi.StringPtrInput
// Display auto submit toolbar. Default is: `false`
AutoSubmitToolbar pulumi.BoolPtrInput
// Identifies a specific application resource in an IDP initiated SSO scenario.
DefaultRelayState pulumi.StringPtrInput
// Identifies the location where the SAML response is intended to be sent inside of the SAML assertion
Destination pulumi.StringPtrInput
// Determines the digest algorithm used to digitally sign the SAML assertion and response
DigestAlgorithm pulumi.StringPtrInput
// Application notes for end users.
EnduserNote pulumi.StringPtrInput
// Groups associated with the application.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups pulumi.StringArrayInput
// Do not display application icon on mobile app. Default is: `false`
HideIos pulumi.BoolPtrInput
// Do not display application icon to users. Default is: `false`
HideWeb pulumi.BoolPtrInput
// Prompt user to re-authenticate if SP asks for it. Default is: `false`
HonorForceAuthn pulumi.BoolPtrInput
// SAML issuer ID.
IdpIssuer pulumi.StringPtrInput
// _Early Access Property_. Enables [Federation Broker Mode](https://help.okta.com/en/prod/Content/Topics/Apps/apps-fbm-enable.htm). When this mode is enabled, `users` and `groups` arguments are ignored.
ImplicitAssignment pulumi.BoolPtrInput
// Saml Inline Hook associated with the application.
InlineHookId pulumi.StringPtrInput
// Certificate name. This modulates the rotation of keys. New name == new key. Required to be set with `keyYearsValid`.
KeyName pulumi.StringPtrInput
// Number of years the certificate is valid (2 - 10 years).
KeyYearsValid pulumi.IntPtrInput
// label of application.
Label pulumi.StringInput
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo pulumi.StringPtrInput
// name of application from the Okta Integration Network, if not included a custom app will be created. If not provided the following arguments are required:
PreconfiguredApp pulumi.StringPtrInput
// The location where the app may present the SAML assertion.
Recipient pulumi.StringPtrInput
// Denotes whether the request is compressed or not.
RequestCompressed pulumi.BoolPtrInput
// Determines whether the SAML auth response message is digitally signed.
ResponseSigned pulumi.BoolPtrInput
// SAML Signed Request enabled
SamlSignedRequestEnabled pulumi.BoolPtrInput
// SAML version for the app's sign-on mode. Valid values are: `"2.0"` or `"1.1"`. Default is `"2.0"`.
SamlVersion pulumi.StringPtrInput
// Signature algorithm used ot digitally sign the assertion and response.
SignatureAlgorithm pulumi.StringPtrInput
// x509 encoded certificate that the Service Provider uses to sign Single Logout requests. Note: should be provided without `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`, see [official documentation](https://developer.okta.com/docs/reference/api/apps/#service-provider-certificate).
SingleLogoutCertificate pulumi.StringPtrInput
// The issuer of the Service Provider that generates the Single Logout request.
SingleLogoutIssuer pulumi.StringPtrInput
// The location where the logout response is sent.
SingleLogoutUrl pulumi.StringPtrInput
// Indicator that allows the app to skip `groups` sync (it can also be provided during import). Default is `false`.
SkipGroups pulumi.BoolPtrInput
// Indicator that allows the app to skip `users` sync (it can also be provided during import). Default is `false`.
SkipUsers pulumi.BoolPtrInput
// SAML service provider issuer.
SpIssuer pulumi.StringPtrInput
// Single Sign-on Url.
SsoUrl pulumi.StringPtrInput
// status of application.
Status pulumi.StringPtrInput
// Identifies the SAML processing rules.
SubjectNameIdFormat pulumi.StringPtrInput
// Template for app user's username when a user is assigned to the app.
SubjectNameIdTemplate pulumi.StringPtrInput
// Username template. Default is: `"${source.login}"`
UserNameTemplate pulumi.StringPtrInput
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus pulumi.StringPtrInput
// Username template suffix.
UserNameTemplateSuffix pulumi.StringPtrInput
// Username template type. Default is: `"BUILT_IN"`.
UserNameTemplateType pulumi.StringPtrInput
// Users associated with the application.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users SamlUserArrayInput
}
func (SamlArgs) ElementType() reflect.Type {
return reflect.TypeOf((*samlArgs)(nil)).Elem()
}
type SamlInput interface {
pulumi.Input
ToSamlOutput() SamlOutput
ToSamlOutputWithContext(ctx context.Context) SamlOutput
}
func (*Saml) ElementType() reflect.Type {
return reflect.TypeOf((**Saml)(nil)).Elem()
}
func (i *Saml) ToSamlOutput() SamlOutput {
return i.ToSamlOutputWithContext(context.Background())
}
func (i *Saml) ToSamlOutputWithContext(ctx context.Context) SamlOutput {
return pulumi.ToOutputWithContext(ctx, i).(SamlOutput)
}
// SamlArrayInput is an input type that accepts SamlArray and SamlArrayOutput values.
// You can construct a concrete instance of `SamlArrayInput` via:
//
// SamlArray{ SamlArgs{...} }
type SamlArrayInput interface {
pulumi.Input
ToSamlArrayOutput() SamlArrayOutput
ToSamlArrayOutputWithContext(context.Context) SamlArrayOutput
}
type SamlArray []SamlInput
func (SamlArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Saml)(nil)).Elem()
}
func (i SamlArray) ToSamlArrayOutput() SamlArrayOutput {
return i.ToSamlArrayOutputWithContext(context.Background())
}
func (i SamlArray) ToSamlArrayOutputWithContext(ctx context.Context) SamlArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SamlArrayOutput)
}
// SamlMapInput is an input type that accepts SamlMap and SamlMapOutput values.
// You can construct a concrete instance of `SamlMapInput` via:
//
// SamlMap{ "key": SamlArgs{...} }
type SamlMapInput interface {
pulumi.Input
ToSamlMapOutput() SamlMapOutput
ToSamlMapOutputWithContext(context.Context) SamlMapOutput
}
type SamlMap map[string]SamlInput
func (SamlMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Saml)(nil)).Elem()
}
func (i SamlMap) ToSamlMapOutput() SamlMapOutput {
return i.ToSamlMapOutputWithContext(context.Background())
}
func (i SamlMap) ToSamlMapOutputWithContext(ctx context.Context) SamlMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SamlMapOutput)
}
type SamlOutput struct{ *pulumi.OutputState }
func (SamlOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Saml)(nil)).Elem()
}
func (o SamlOutput) ToSamlOutput() SamlOutput {
return o
}
func (o SamlOutput) ToSamlOutputWithContext(ctx context.Context) SamlOutput {
return o
}
// Custom error page URL.
func (o SamlOutput) AccessibilityErrorRedirectUrl() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Saml) pulumi.StringPtrOutput { return v.AccessibilityErrorRedirectUrl }).(pulumi.StringPtrOutput)
}
// Custom login page for this application.
func (o SamlOutput) AccessibilityLoginRedirectUrl() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Saml) pulumi.StringPtrOutput { return v.AccessibilityLoginRedirectUrl }).(pulumi.StringPtrOutput)
}
// Enable self-service. Default is: `false`.
func (o SamlOutput) AccessibilitySelfService() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Saml) pulumi.BoolPtrOutput { return v.AccessibilitySelfService }).(pulumi.BoolPtrOutput)
}
// An array of ACS endpoints. You can configure a maximum of 100 endpoints.
func (o SamlOutput) AcsEndpoints() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Saml) pulumi.StringArrayOutput { return v.AcsEndpoints }).(pulumi.StringArrayOutput)
}
// Application notes for admins.
func (o SamlOutput) AdminNote() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Saml) pulumi.StringPtrOutput { return v.AdminNote }).(pulumi.StringPtrOutput)
}
// Displays specific appLinks for the app. The value for each application link should be boolean.
func (o SamlOutput) AppLinksJson() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Saml) pulumi.StringPtrOutput { return v.AppLinksJson }).(pulumi.StringPtrOutput)
}
// Application settings in JSON format.
func (o SamlOutput) AppSettingsJson() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Saml) pulumi.StringPtrOutput { return v.AppSettingsJson }).(pulumi.StringPtrOutput)
}