Skip to content

Commit

Permalink
AUT-4030: oidc: Convert string to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
whi-tw committed Jan 29, 2025
1 parent c412f1d commit a60eec3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ci/terraform/oidc/authdev1.tfvars
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
shared_state_bucket = "di-auth-development-tfstate"

# App-specific
test_clients_enabled = "true"
# Feature Flags
test_clients_enabled = true
ipv_api_enabled = true
account_intervention_service_call_enabled = true
account_intervention_service_action_enabled = true
Expand Down
2 changes: 1 addition & 1 deletion ci/terraform/oidc/authdev2.tfvars
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
shared_state_bucket = "di-auth-development-tfstate"

# App-specific
test_clients_enabled = "true"
test_clients_enabled = true
ipv_api_enabled = true
account_intervention_service_call_enabled = true
account_intervention_service_action_enabled = true
Expand Down
2 changes: 1 addition & 1 deletion ci/terraform/oidc/mfa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module "mfa" {
EMAIL_QUEUE_URL = aws_sqs_queue.email_queue.id
TXMA_AUDIT_QUEUE_URL = module.oidc_txma_audit.queue_url
REDIS_KEY = local.redis_key
TEST_CLIENTS_ENABLED = var.test_clients_enabled
TEST_CLIENTS_ENABLED = var.test_clients_enabled ? "true" : "false"
INTERNAl_SECTOR_URI = var.internal_sector_uri
SUPPORT_REAUTH_SIGNOUT_ENABLED = var.support_reauth_signout_enabled
}
Expand Down
2 changes: 1 addition & 1 deletion ci/terraform/oidc/sandpit.tfvars
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
shared_state_bucket = "digital-identity-dev-tfstate"

# App-specific
test_clients_enabled = "true"
test_clients_enabled = true
ipv_api_enabled = true
ipv_authorisation_callback_uri = ""
ipv_authorisation_uri = ""
Expand Down
2 changes: 1 addition & 1 deletion ci/terraform/oidc/send_notification.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module "send_notification" {
PENDING_EMAIL_CHECK_QUEUE_URL = local.pending_email_check_queue_id
TXMA_AUDIT_QUEUE_URL = module.oidc_txma_audit.queue_url
REDIS_KEY = local.redis_key
TEST_CLIENTS_ENABLED = var.test_clients_enabled
TEST_CLIENTS_ENABLED = var.test_clients_enabled ? "true" : "false"
DEFAULT_OTP_CODE_EXPIRY = var.otp_code_ttl_duration
EMAIL_OTP_ACCOUNT_CREATION_CODE_EXPIRY = var.email_acct_creation_otp_code_ttl_duration
INTERNAl_SECTOR_URI = var.internal_sector_uri
Expand Down
4 changes: 2 additions & 2 deletions ci/terraform/oidc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ variable "test_client_verify_phone_number_otp" {
}

variable "test_clients_enabled" {
type = string
default = "false"
type = bool
default = false
}

variable "client_registry_api_enabled" {
Expand Down
2 changes: 1 addition & 1 deletion ci/terraform/oidc/verify_code.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module "verify_code" {
TERMS_CONDITIONS_VERSION = var.terms_and_conditions
TEST_CLIENT_VERIFY_EMAIL_OTP = var.test_client_verify_email_otp
TEST_CLIENT_VERIFY_PHONE_NUMBER_OTP = var.test_client_verify_phone_number_otp
TEST_CLIENTS_ENABLED = var.test_clients_enabled
TEST_CLIENTS_ENABLED = var.test_clients_enabled ? "true" : "false"
INTERNAl_SECTOR_URI = var.internal_sector_uri
CODE_MAX_RETRIES_INCREASED = var.code_max_retries_increased
REDUCED_LOCKOUT_DURATION = var.reduced_lockout_duration
Expand Down
2 changes: 1 addition & 1 deletion ci/terraform/oidc/verify_mfa_code.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module "verify_mfa_code" {
TERMS_CONDITIONS_VERSION = var.terms_and_conditions
TEST_CLIENT_VERIFY_EMAIL_OTP = var.test_client_verify_email_otp
TEST_CLIENT_VERIFY_PHONE_NUMBER_OTP = var.test_client_verify_phone_number_otp
TEST_CLIENTS_ENABLED = var.test_clients_enabled
TEST_CLIENTS_ENABLED = var.test_clients_enabled ? "true" : "false"
INTERNAl_SECTOR_URI = var.internal_sector_uri
EXPERIAN_PHONE_CHECKER_QUEUE_URL = local.experian_phone_check_sqs_queue_id
PHONE_CHECKER_WITH_RETRY = var.phone_checker_with_retry
Expand Down

0 comments on commit a60eec3

Please sign in to comment.