From 5674e099323299d613595746705aceb6311d43d3 Mon Sep 17 00:00:00 2001 From: Jacob Woffenden Date: Wed, 9 Oct 2024 15:30:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=82=20Port=20Auth0=20client=20changes?= =?UTF-8?q?=20(#5584)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jacob Woffenden --- .../auth0-clients.tf | 9 +++++---- .../ministryofjustice-data-platform/auth0-clients.tf | 9 +++++---- .../cluster/auth0-clients.tf | 4 ++++ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/terraform/auth0/ministryofjustice-data-platform-development/auth0-clients.tf b/terraform/auth0/ministryofjustice-data-platform-development/auth0-clients.tf index 46415c12d5..26686ad976 100644 --- a/terraform/auth0/ministryofjustice-data-platform-development/auth0-clients.tf +++ b/terraform/auth0/ministryofjustice-data-platform-development/auth0-clients.tf @@ -1,8 +1,9 @@ resource "auth0_client" "data_platform_control_panel" { - name = "data-platform-control-panel" - app_type = "regular_web" - description = "Data Platform Control Panel" - logo_uri = "https://assets.development.data-platform.service.justice.gov.uk/assets/justice-digital-logo.png" + name = "data-platform-control-panel" + app_type = "regular_web" + description = "Data Platform Control Panel" + logo_uri = "https://assets.development.data-platform.service.justice.gov.uk/assets/justice-digital-logo.png" + cross_origin_auth = true } resource "auth0_connection_client" "data_platform_control_panel_entra_id" { diff --git a/terraform/auth0/ministryofjustice-data-platform/auth0-clients.tf b/terraform/auth0/ministryofjustice-data-platform/auth0-clients.tf index f2fdf48d25..bc7d563616 100644 --- a/terraform/auth0/ministryofjustice-data-platform/auth0-clients.tf +++ b/terraform/auth0/ministryofjustice-data-platform/auth0-clients.tf @@ -1,8 +1,9 @@ resource "auth0_client" "data_platform_control_panel" { - name = "data-platform-control-panel" - app_type = "regular_web" - description = "Data Platform Control Panel" - logo_uri = "https://assets.data-platform.service.justice.gov.uk/assets/justice-digital-logo.png" + name = "data-platform-control-panel" + app_type = "regular_web" + description = "Data Platform Control Panel" + logo_uri = "https://assets.data-platform.service.justice.gov.uk/assets/justice-digital-logo.png" + cross_origin_auth = true } resource "auth0_connection_client" "data_platform_control_panel_entra_id" { diff --git a/terraform/aws/analytical-platform-development/cluster/auth0-clients.tf b/terraform/aws/analytical-platform-development/cluster/auth0-clients.tf index c99d823466..651545e99f 100644 --- a/terraform/aws/analytical-platform-development/cluster/auth0-clients.tf +++ b/terraform/aws/analytical-platform-development/cluster/auth0-clients.tf @@ -9,6 +9,7 @@ resource "auth0_client" "airflow_sqlite" { callbacks = ["https://*-airflow-sqlite.tools.${var.route53_zone}/callback"] allowed_logout_urls = ["https://*-airflow-sqlite.tools.${var.route53_zone}"] oidc_conformant = true + cross_origin_auth = true jwt_configuration { alg = "RS256" } @@ -25,6 +26,7 @@ resource "auth0_client" "rstudio" { callbacks = ["https://*-rstudio.tools.${var.route53_zone}/callback"] allowed_logout_urls = ["https://*-rstudio.tools.${var.route53_zone}"] oidc_conformant = true + cross_origin_auth = true jwt_configuration { alg = "HS256" } @@ -41,6 +43,7 @@ resource "auth0_client" "jupyter_lab" { callbacks = ["https://*-jupyter-lab.tools.${var.route53_zone}/callback"] allowed_logout_urls = ["https://*-jupyter-lab.tools.${var.route53_zone}"] oidc_conformant = true + cross_origin_auth = true jwt_configuration { alg = "HS256" } @@ -57,6 +60,7 @@ resource "auth0_client" "controlpanel" { callbacks = ["https://controlpanel.services.${var.route53_zone}/oidc/callback/", "http://localhost:8000/oidc/callback/"] allowed_logout_urls = ["https://controlpanel.services.${var.route53_zone}", "http://localhost:8000/"] oidc_conformant = true + cross_origin_auth = true jwt_configuration { alg = "RS256" }