Skip to content

Commit

Permalink
fix: update redirect url for spar as requested (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCatherine1994 authored Oct 18, 2023
1 parent 643549e commit ea0ad6e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions infrastructure/server/oidc_clients_spar.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_cognito_user_pool_client" "dev_spar_oidc_client" {
allowed_oauth_scopes = ["openid", "profile", "email"]
callback_urls = [
"https://oidcdebugggersecure-c6af30-dev.apps.gold.devops.gov.bc.ca/",
"http://localhost:3000/dashboard",
"http://localhost:3000/",
"http://localhost:3000/silent-check-sso"
]
logout_urls = [
Expand Down Expand Up @@ -41,11 +41,13 @@ resource "aws_cognito_user_pool_client" "test_spar_oidc_client" {
allowed_oauth_flows_user_pool_client = "true"
allowed_oauth_scopes = ["openid", "profile", "email"]
callback_urls = [
"http://localhost:3000/",
"https://oidcdebugggersecure-c6af30-dev.apps.gold.devops.gov.bc.ca/",
"https://nr-spar-webapp-test-frontend.apps.silver.devops.gov.bc.ca/dashboard"
"https://nr-spar-webapp-test-frontend.apps.silver.devops.gov.bc.ca/"
]
logout_urls = [
"${var.cognito_app_client_logout_chain_url.test}https://nr-spar-webapp-test-frontend.apps.silver.devops.gov.bc.ca/"
"${var.cognito_app_client_logout_chain_url.test}https://nr-spar-webapp-test-frontend.apps.silver.devops.gov.bc.ca/",
"${var.cognito_app_client_logout_chain_url.test}http://localhost:3000/"
]
enable_propagate_additional_user_context_data = "false"
enable_token_revocation = "true"
Expand Down Expand Up @@ -76,10 +78,10 @@ resource "aws_cognito_user_pool_client" "prod_spar_oidc_client" {
allowed_oauth_flows_user_pool_client = "true"
allowed_oauth_scopes = ["openid", "profile", "email"]
callback_urls = [
"https://nr-spar-webapp-test-frontend.apps.silver.devops.gov.bc.ca/dashboard"
"https://nr-spar-webapp-prod-frontend.apps.silver.devops.gov.bc.ca/"
]
logout_urls = [
"${var.cognito_app_client_logout_chain_url.prod}https://nr-spar-webapp-test-frontend.apps.silver.devops.gov.bc.ca/"
"${var.cognito_app_client_logout_chain_url.prod}https://nr-spar-webapp-prod-frontend.apps.silver.devops.gov.bc.ca/"
]
enable_propagate_additional_user_context_data = "false"
enable_token_revocation = "true"
Expand Down

0 comments on commit ea0ad6e

Please sign in to comment.