This repository has been archived by the owner on Jun 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add app exclude and platform scenario
- Loading branch information
Showing
3 changed files
with
50 additions
and
61 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
examples/okta_policy_rule_idp_discovery/app_exclude_platform.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
resource okta_policy_rule_idp_discovery test { | ||
policyid = "${data.okta_policy.test.id}" | ||
priority = 1 | ||
name = "testAcc_replace_with_uuid" | ||
idp_type = "OKTA" | ||
|
||
app_exclude { | ||
type = "APP" | ||
id = "${okta_app_oauth.test.id}" | ||
} | ||
|
||
platform_include { | ||
type = "MOBILE" | ||
os_type = "ANY" | ||
} | ||
} | ||
|
||
data okta_policy test { | ||
name = "Idp Discovery Policy" | ||
type = "IDP_DISCOVERY" | ||
} | ||
|
||
resource okta_app_oauth test { | ||
label = "testAcc_replace_with_uuid" | ||
type = "web" | ||
grant_types = ["authorization_code"] | ||
redirect_uris = ["http://d.com/"] | ||
response_types = ["code"] | ||
client_basic_secret = "something_from_somewhere" | ||
custom_client_id = "something_from_somewhere" | ||
token_endpoint_auth_method = "client_secret_basic" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters