Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ksatirli committed Jul 28, 2024
1 parent 5e7f0fd commit a3ba0b5
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 25 deletions.
43 changes: 23 additions & 20 deletions okta_authenticators.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# see https://registry.terraform.io/providers/okta/okta/latest/docs/resources/authenticator
resource "okta_authenticator" "okta_email" {
key = "okta_email"
name = "Email"
status = "ACTIVE"
key = "okta_email"
legacy_ignore_name = false
name = "Email"
status = "ACTIVE"

settings = jsonencode({
"allowedFor" : "recovery"
Expand All @@ -12,31 +13,21 @@ resource "okta_authenticator" "okta_email" {

# see https://registry.terraform.io/providers/okta/okta/latest/docs/resources/authenticator
resource "okta_authenticator" "okta_password" {
key = "okta_password"
name = "Password"
status = "ACTIVE"
key = "okta_password"
legacy_ignore_name = false
name = "Password"

settings = jsonencode({
"allowedFor" : "authentication"
})
}

# see https://registry.terraform.io/providers/okta/okta/latest/docs/resources/authenticator
resource "okta_authenticator" "security_question" {
key = "security_question"
name = "Security Question"
status = "ACTIVE"

settings = jsonencode({
"allowedFor" : "recovery"
})
}

# see https://registry.terraform.io/providers/okta/okta/latest/docs/resources/authenticator
resource "okta_authenticator" "okta_verify" {
key = "okta_verify"
name = "Okta Verify"
status = "ACTIVE"
key = "okta_verify"
legacy_ignore_name = false
name = "Okta Verify"
status = "ACTIVE"

settings = jsonencode({
"channelBinding" : {
Expand All @@ -51,3 +42,15 @@ resource "okta_authenticator" "okta_verify" {
"userVerification" : "PREFERRED"
})
}

# see https://registry.terraform.io/providers/okta/okta/latest/docs/resources/authenticator
resource "okta_authenticator" "security_question" {
key = "security_question"
legacy_ignore_name = false
name = "Security Question"
status = "ACTIVE"

settings = jsonencode({
"allowedFor" : "recovery"
})
}
6 changes: 3 additions & 3 deletions okta_branding.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ resource "okta_brand" "main" {
data "okta_brands" "main" {}

# see https://registry.terraform.io/providers/okta/okta/latest/docs/data-sources/themes
#data "okta_themes" "main" {
# brand_id = tolist(data.okta_brands.main.brands)[0].id
#}
data "okta_themes" "main" {
brand_id = tolist(data.okta_brands.main.brands)[0].id
}

# `okta_theme` can only be modified after first importing it using `terraform import`.
# Steps:
Expand Down
2 changes: 1 addition & 1 deletion okta_identity_providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "okta_idp_social" "github" {
client_id = var.okta_social_login_github_client_id
client_secret = var.okta_social_login_github_client_secret
deprovisioned_action = "NONE"
issuer_mode = "DYNAMIC"
issuer_mode = "CUSTOM_URL"
name = "GitHub (Org: ${var.project_identifier})"
profile_master = true
protocol_type = "OIDC"
Expand Down
14 changes: 14 additions & 0 deletions secrets.op.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# shellcheck shell=sh

# This file is part of a workflow that uses the 1Password CLI (https://developer.1password.com/docs/cli/)
# and Terraform Environment Variables (https://developer.hashicorp.com/terraform/cli/config/environment-variables#tf_var_name)
# to safely inject Secret Zero-type data into Terraform, by polling a project-specific 1Password Vault.
#
# For more information, see the README.md file.

# Okta-specific configuration
# see https://developer.okta.com/docs/guides/create-an-api-token/main/
export TF_VAR_okta_org_name="op://Shared/okta/api/org"
export TF_VAR_okta_api_token="op://Shared/okta/api/token"
export TF_VAR_okta_social_login_github_client_id="op://Shared/okta/social-login-github/client-id"
export TF_VAR_okta_social_login_github_client_secret="op://Shared/okta/social-login-github/client-secret"
2 changes: 1 addition & 1 deletion terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ terraform {

# see https://registry.terraform.io/providers/hashicorp/tfe/0.57.0
tfe = {
source = "hashicorp/tfe"
source = "hashicorp/tfe"
version = "0.57.0"
}
}
Expand Down

0 comments on commit a3ba0b5

Please sign in to comment.