-
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.
- Loading branch information
Showing
817 changed files
with
326,321 additions
and
123,734 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,15 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
general-platform-helpers: okta/[email protected] | ||
|
||
workflows: | ||
# See OKTA-634442 | ||
semgrep: | ||
jobs: | ||
- general-platform-helpers/job-semgrep-prepare: | ||
name: semgrep-prepare | ||
- general-platform-helpers/job-semgrep-scan: | ||
name: "Scan with Semgrep" | ||
requires: | ||
- semgrep-prepare |
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,19 @@ | ||
# play VCR tests in a GH action | ||
name: VCR | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
|
||
- name: Run VCR tests | ||
run: make test-play-vcr-acc |
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 @@ | ||
# play specific VCR smoke tests in a GH action | ||
name: VCR Smoketest | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
smokeTests: | ||
description: 'List of ACC Test name(s) separated by whitespace' | ||
required: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20" | ||
|
||
- name: Run VCR smoke tests | ||
run: make smoke-test-play-vcr-acc | ||
env: | ||
SMOKE_TESTS: ${{ inputs.smokeTests }} |
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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
resource "okta_user" "test" { | ||
admin_roles = ["APP_ADMIN", "GROUP_MEMBERSHIP_ADMIN", "HELP_DESK_ADMIN"] | ||
first_name = "TestAcc" | ||
last_name = "blah" | ||
login = "[email protected]" | ||
email = "[email protected]" | ||
} | ||
|
||
resource "okta_user_admin_roles" "test" { | ||
user_id = okta_user.test.id | ||
admin_roles = [ | ||
"APP_ADMIN", | ||
"GROUP_MEMBERSHIP_ADMIN" | ||
] | ||
} | ||
|
||
resource "okta_app_swa" "test" { | ||
label = "testAcc_replace_with_uuid" | ||
button_field = "btn-login" | ||
|
@@ -21,12 +28,13 @@ resource "okta_group" "test" { | |
|
||
resource "okta_admin_role_targets" "test_app" { | ||
user_id = okta_user.test.id | ||
role_type = tolist(okta_user.test.admin_roles)[0] | ||
role_type = "APP_ADMIN" | ||
apps = [format("%s.%s", okta_app_swa.test.name, okta_app_swa.test.id)] | ||
} | ||
|
||
resource "okta_admin_role_targets" "test_group" { | ||
user_id = okta_user.test.id | ||
role_type = tolist(okta_user.test.admin_roles)[1] | ||
role_type = "GROUP_MEMBERSHIP_ADMIN" | ||
groups = [okta_group.test.id] | ||
depends_on = [ okta_user_admin_roles.test ] | ||
} |
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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
resource "okta_user" "test" { | ||
admin_roles = ["APP_ADMIN", "GROUP_MEMBERSHIP_ADMIN", "HELP_DESK_ADMIN"] | ||
first_name = "TestAcc" | ||
last_name = "blah" | ||
login = "[email protected]" | ||
email = "[email protected]" | ||
} | ||
|
||
resource "okta_user_admin_roles" "test" { | ||
user_id = okta_user.test.id | ||
admin_roles = [ | ||
"APP_ADMIN", | ||
"GROUP_MEMBERSHIP_ADMIN" | ||
] | ||
} | ||
|
||
resource "okta_app_swa" "test" { | ||
label = "testAcc_replace_with_uuid" | ||
button_field = "btn-login" | ||
|
@@ -26,12 +33,12 @@ resource "okta_group" "test_2" { | |
|
||
resource "okta_admin_role_targets" "test_app" { | ||
user_id = okta_user.test.id | ||
role_type = tolist(okta_user.test.admin_roles)[0] | ||
role_type = "APP_ADMIN" | ||
apps = ["oidc_client", "facebook"] | ||
} | ||
|
||
resource "okta_admin_role_targets" "test_group" { | ||
user_id = okta_user.test.id | ||
role_type = tolist(okta_user.test.admin_roles)[1] | ||
role_type = "GROUP_MEMBERSHIP_ADMIN" | ||
groups = [okta_group.test.id, okta_group.test_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
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 | ||
} |
Oops, something went wrong.