-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1698 from okta/okta_app_signon_policy_assignment
Okta app access policy assignment
- Loading branch information
Showing
11 changed files
with
514 additions
and
7 deletions.
There are no files selected for viewing
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,8 @@ | ||
# okta_app_access_policy_assignment | ||
|
||
Resource to manage the access policy for an Application. [See Okta | ||
documentation for more | ||
details](https://developer.okta.com/docs/api/resources/apps). | ||
|
||
- Simple example [can be found here](./basic.tf) | ||
- Update to the simple example [can be found here](./update.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,26 @@ | ||
resource "okta_app_oauth" "test" { | ||
label = "testAcc_App_replace_with_uuid" | ||
type = "web" | ||
grant_types = ["authorization_code"] | ||
redirect_uris = ["http://d.com/"] | ||
response_types = ["code"] | ||
client_basic_secret = "something_from_somewhere" | ||
client_id = "cid_replace_with_uuid" | ||
token_endpoint_auth_method = "client_secret_basic" | ||
consent_method = "TRUSTED" | ||
wildcard_redirect = "DISABLED" | ||
} | ||
resource "okta_app_signon_policy" "policy_1" { | ||
name = "testAcc_Access_Policy_1_replace_with_uuid" | ||
description = "Policy 1" | ||
} | ||
|
||
resource "okta_app_signon_policy" "policy_2" { | ||
name = "testAcc_Access_Policy_2_replace_with_uuid" | ||
description = "Policy 2" | ||
} | ||
|
||
resource "okta_app_access_policy_assignment" "test" { | ||
app_id = okta_app_oauth.test.id | ||
policy_id = okta_app_signon_policy.policy_1.id | ||
} |
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,26 @@ | ||
resource "okta_app_oauth" "test" { | ||
label = "testAcc_App_replace_with_uuid" | ||
type = "web" | ||
grant_types = ["authorization_code"] | ||
redirect_uris = ["http://d.com/"] | ||
response_types = ["code"] | ||
client_basic_secret = "something_from_somewhere" | ||
client_id = "cid_replace_with_uuid" | ||
token_endpoint_auth_method = "client_secret_basic" | ||
consent_method = "TRUSTED" | ||
wildcard_redirect = "DISABLED" | ||
} | ||
resource "okta_app_signon_policy" "policy_1" { | ||
name = "testAcc_SignOn_Policy_1_replace_with_uuid" | ||
description = "Policy 1" | ||
} | ||
|
||
resource "okta_app_signon_policy" "policy_2" { | ||
name = "testAcc_SignOn_Policy_2_replace_with_uuid" | ||
description = "Policy 2" | ||
} | ||
|
||
resource "okta_app_access_policy_assignment" "test" { | ||
app_id = okta_app_oauth.test.id | ||
policy_id = okta_app_signon_policy.policy_2.id | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package okta | ||
|
||
// TODO placeholder to add VCR testing to plugin framework provider based | ||
// resources and datasources | ||
func NewFrameworkProviderTest(testName string) *frameworkProviderTest { | ||
return &frameworkProviderTest{ | ||
FrameworkProvider: FrameworkProvider{ | ||
Version: "test", | ||
}, | ||
TestName: testName, | ||
} | ||
} | ||
|
||
type frameworkProviderTest struct { | ||
FrameworkProvider | ||
TestName string | ||
} |
Oops, something went wrong.