-
Notifications
You must be signed in to change notification settings - Fork 209
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 #1104 from okta/themes_feature
Data Sources "okta_themes", "okta_theme", Resource "okta_theme"
- Loading branch information
Showing
43 changed files
with
1,191 additions
and
133 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
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,12 @@ | ||
# okta_theme | ||
|
||
This resource represents a theme of a brand for an Okta organization. More | ||
information can be found in the | ||
[Theme](https://developer.okta.com/docs/reference/api/brands/#theme-response-object) | ||
API documentation. | ||
|
||
- Example [datastore.tf](./datasource.tf) | ||
- Example [basic.tf](./basic.tf) | ||
- Example [updated.tf](./updated.tf) | ||
- Example [import.tf](./import.tf) | ||
- Example [delete-images.tf](./delete-images.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,21 @@ | ||
# This example is part of the test harness. The okta_theme resource state has | ||
# already been imported via import.tf | ||
|
||
data "okta_brands" "test" { | ||
} | ||
|
||
resource "okta_theme" "example" { | ||
brand_id = tolist(data.okta_brands.test.brands)[0].id | ||
|
||
logo = "../examples/okta_theme/okta_logo.png" | ||
favicon = "../examples/okta_theme/okta_favicon.png" | ||
background_image = "../examples/okta_theme/okta_background_image.png" | ||
primary_color_hex = "#1662dd" | ||
primary_color_contrast_hex = "#ffffff" | ||
secondary_color_hex = "#ebebed" | ||
secondary_color_contrast_hex = "#000000" | ||
sign_in_page_touch_point_variant = "OKTA_DEFAULT" | ||
end_user_dashboard_touch_point_variant = "OKTA_DEFAULT" | ||
error_page_touch_point_variant = "OKTA_DEFAULT" | ||
email_template_touch_point_variant = "OKTA_DEFAULT" | ||
} |
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,11 @@ | ||
data "okta_brands" "test" { | ||
} | ||
|
||
data "okta_themes" "test" { | ||
brand_id = tolist(data.okta_brands.test.brands)[0].id | ||
} | ||
|
||
data "okta_theme" "test" { | ||
brand_id = tolist(data.okta_brands.test.brands)[0].id | ||
theme_id = tolist(data.okta_themes.test.themes)[0].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,22 @@ | ||
# This example is part of the test harness. The okta_theme resource state has | ||
# already been imported via import.tf | ||
|
||
data "okta_brands" "test" { | ||
} | ||
|
||
resource "okta_theme" "example" { | ||
brand_id = tolist(data.okta_brands.test.brands)[0].id | ||
|
||
logo = "" | ||
favicon = "" | ||
background_image = "" | ||
|
||
primary_color_hex = "#1662ff" | ||
primary_color_contrast_hex = "#ffffff" | ||
secondary_color_hex = "#fbfbfd" | ||
secondary_color_contrast_hex = "#000000" | ||
sign_in_page_touch_point_variant = "OKTA_DEFAULT" | ||
end_user_dashboard_touch_point_variant = "OKTA_DEFAULT" | ||
error_page_touch_point_variant = "OKTA_DEFAULT" | ||
email_template_touch_point_variant = "OKTA_DEFAULT" | ||
} |
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,11 @@ | ||
data "okta_brands" "test" { | ||
} | ||
|
||
data "okta_themes" "test" { | ||
brand_id = tolist(data.okta_brands.test.brands)[0].id | ||
} | ||
|
||
resource "okta_theme" "example" { | ||
brand_id = tolist(data.okta_brands.test.brands)[0].id | ||
theme_id = tolist(data.okta_themes.test.themes)[0].id | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
# This example is part of the test harness. The okta_theme resource state has | ||
# already been imported via import.tf | ||
|
||
data "okta_brands" "test" { | ||
} | ||
|
||
resource "okta_theme" "example" { | ||
brand_id = tolist(data.okta_brands.test.brands)[0].id | ||
|
||
primary_color_hex = "#1662ff" | ||
primary_color_contrast_hex = "#ffffff" | ||
secondary_color_hex = "#fbfbfd" | ||
secondary_color_contrast_hex = "#000000" | ||
sign_in_page_touch_point_variant = "OKTA_DEFAULT" | ||
end_user_dashboard_touch_point_variant = "OKTA_DEFAULT" | ||
error_page_touch_point_variant = "OKTA_DEFAULT" | ||
email_template_touch_point_variant = "OKTA_DEFAULT" | ||
} |
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_themes | ||
|
||
This resource represents a themes of a brand for an Okta organization. More | ||
information can be found in the | ||
[Theme](https://developer.okta.com/docs/reference/api/brands/#get-themes) | ||
API documentation. | ||
|
||
- Example [datastore.tf](./datasource.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,6 @@ | ||
data "okta_brands" "test" { | ||
} | ||
|
||
data "okta_themes" "test" { | ||
brand_id = tolist(data.okta_brands.test.brands)[0].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
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
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
Oops, something went wrong.