You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`consent_method` (String) *Early Access Property*. Indicates whether user consent is required or implicit. Valid values: REQUIRED, TRUSTED. Default value is TRUSTED. Note: Enable `API_ACCESS_MANAGEMENT`, `API_ACCESS_MANAGEMENT_CONSENT` feature flags in your org to use this property.
85
85
-`enduser_note` (String) Application notes for end users.
86
86
-`grant_types` (Set of String) List of OAuth 2.0 grant types. Conditional validation params found here https://developer.okta.com/docs/api/resources/apps#credentials-settings-details. Defaults to minimum requirements per app type.
87
-
-`groups_claim` (Block Set, Max: 1) Groups claim for an OpenID Connect client application (argument is ignored when API auth is done with OAuth 2.0 credentials) (see [below for nested schema](#nestedblock--groups_claim))
87
+
-`groups_claim` (Block Set, Max: 1) Groups claim for an OpenID Connect client application (argument is ignored when API auth is done with OAuth 2.0 credentials, and is not supported when `preconfigured_app` is set) (see [below for nested schema](#nestedblock--groups_claim))
88
88
-`hide_ios` (Boolean) Do not display application icon on mobile app
89
89
-`hide_web` (Boolean) Do not display application icon to users
-`pkce_required` (Boolean) Require Proof Key for Code Exchange (PKCE) for additional verification key rotation mode. See: https://developer.okta.com/docs/reference/api/apps/#oauth-credential-object
101
101
-`policy_uri` (String) URI to web page providing client policy document.
102
102
-`post_logout_redirect_uris` (Set of String) List of URIs for redirection after logout. Note: see okta_app_oauth_post_logout_redirect_uri for appending to this list in a decentralized way.
103
+
-`preconfigured_app` (String) Tells Okta to use an existing application in their application catalog, as opposed to a custom application. Note: `groups_claim` is not supported when using `preconfigured_app`.
103
104
-`profile` (String) Custom JSON that represents an OAuth application's profile
104
105
-`redirect_uris` (List of String) List of URIs for use in the redirect-based flow. This is required for all application types except service. Note: see okta_app_oauth_redirect_uri for appending to this list in a decentralized way.
105
106
-`refresh_token_leeway` (Number) *Early Access Property* Grace period for token rotation, required with grant types refresh_token
Deprecated: "The groups_claim field is deprecated and will be removed in a future version. Use Authorization Server Claims (okta_auth_server_claim) or app profile configuration instead.",
405
-
Description: "Groups claim for an OpenID Connect client application (DEPRECATED: This field will be removed in a future version. Use Authorization Server Claims instead).",
406
-
Elem: groupsClaimResource,
401
+
Type: schema.TypeList,
402
+
MaxItems: 1,
403
+
Optional: true,
404
+
Deprecated: "The groups_claim field is deprecated and will be removed in a future version. Use Authorization Server Claims (okta_auth_server_claim) or app profile configuration instead.",
405
+
Description: "Groups claim for an OpenID Connect client application (DEPRECATED: This field will be removed in a future version. Use Authorization Server Claims instead).",
406
+
Elem: groupsClaimResource,
407
+
ConflictsWith: []string{"preconfigured_app"},
407
408
},
408
409
"app_settings_json": {
409
410
Type: schema.TypeString,
@@ -424,6 +425,11 @@ other arguments that changed will be applied.`,
424
425
Optional: true,
425
426
Description: "URL reference to JWKS",
426
427
},
428
+
"preconfigured_app": {
429
+
Type: schema.TypeString,
430
+
Optional: true,
431
+
Description: "Tells Okta to use an existing application in their application catalog, as opposed to a custom application.",
432
+
},
427
433
}),
428
434
Timeouts: &schema.ResourceTimeout{
429
435
Create: schema.DefaultTimeout(1*time.Hour),
@@ -536,15 +542,19 @@ func setAppOauthGroupsClaim(ctx context.Context, d *schema.ResourceData, meta in
536
542
ifd.Get("issuer_mode").(string) !="" {
537
543
gc.IssuerMode=d.Get("issuer_mode").(string)
538
544
} else {
539
-
returnerrors.New("issuer_mode must be set when issuer_mode is set")
545
+
returnerrors.New("issuer_mode must be set")
540
546
}
541
547
} else {
542
-
returnerrors.New("issuer_mode must be set when issuer_mode is set")
returnfmt.Errorf("failed to update groups claim for an OAuth application: %v", err)
551
+
if_, ok:=d.GetOk("preconfigured_app"); !ok { // the internal api for setting app oauth groups claim doesn't work with most preconfigured i.e. existing apps
0 commit comments