Skip to content

Commit

Permalink
feat: #1122 support spar to add dev redirect urls to test (#1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCatherine1994 authored Jan 13, 2024
1 parent 15c513d commit 7a3968a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions infrastructure/server/oidc_clients_spar.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ resource "aws_cognito_user_pool_client" "dev_spar_oidc_client" {
allowed_oauth_flows = ["code"]
allowed_oauth_flows_user_pool_client = "true"
allowed_oauth_scopes = ["openid", "profile", "email"]
callback_urls = concat([
callback_urls = [
"https://oidcdebugggersecure-c6af30-dev.apps.gold.devops.gov.bc.ca/",
"http://localhost:3000/",
"http://localhost:3000/silent-check-sso"
], [for i in range("${var.dev_pr_url_count}") : "https://nr-spar-${i}-frontend.apps.silver.devops.gov.bc.ca/"])
logout_urls = concat([
]
logout_urls = [
"${var.cognito_app_client_logout_chain_url.dev}https://oidcdebugggersecure-c6af30-dev.apps.gold.devops.gov.bc.ca/",
"${var.cognito_app_client_logout_chain_url.dev}http://localhost:3000/"
], [for i in range("${var.dev_pr_url_count}") : "${var.cognito_app_client_logout_chain_url.dev}https://nr-spar-${i}-frontend.apps.silver.devops.gov.bc.ca/"])
]
enable_propagate_additional_user_context_data = "false"
enable_token_revocation = "true"
explicit_auth_flows = ["ALLOW_REFRESH_TOKEN_AUTH"]
Expand Down Expand Up @@ -40,15 +40,15 @@ resource "aws_cognito_user_pool_client" "test_spar_oidc_client" {
allowed_oauth_flows = ["code"]
allowed_oauth_flows_user_pool_client = "true"
allowed_oauth_scopes = ["openid", "profile", "email"]
callback_urls = [
callback_urls = concat([
"http://localhost:3000/",
"https://oidcdebugggersecure-c6af30-dev.apps.gold.devops.gov.bc.ca/",
"https://nr-spar-test-frontend.apps.silver.devops.gov.bc.ca/"
]
logout_urls = [
], [for i in range("${var.dev_pr_url_count}") : "https://nr-spar-${i}-frontend.apps.silver.devops.gov.bc.ca/"])
logout_urls = concat([
"${var.cognito_app_client_logout_chain_url.test}https://nr-spar-test-frontend.apps.silver.devops.gov.bc.ca/",
"${var.cognito_app_client_logout_chain_url.test}http://localhost:3000/"
]
], [for i in range("${var.dev_pr_url_count}") : "${var.cognito_app_client_logout_chain_url.test}https://nr-spar-${i}-frontend.apps.silver.devops.gov.bc.ca/"])
enable_propagate_additional_user_context_data = "false"
enable_token_revocation = "true"
explicit_auth_flows = ["ALLOW_REFRESH_TOKEN_AUTH"]
Expand Down

0 comments on commit 7a3968a

Please sign in to comment.