From 25e7ea9672594276e047dc73ead833fee49fb2f6 Mon Sep 17 00:00:00 2001 From: Jacob Woffenden Date: Mon, 20 Nov 2023 16:44:24 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Auth0=20custom=20domain=20(#2442)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jacob Woffenden --- .../auth0-clients.tf | 6 ++++-- .../auth0-custom-domain.tf | 5 +++++ .../ministryofjustice-data-platform/auth0-clients.tf | 11 +++++++++++ .../auth0-custom-domain.tf | 5 +++++ 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 terraform/auth0/ministryofjustice-data-platform-development/auth0-custom-domain.tf create mode 100644 terraform/auth0/ministryofjustice-data-platform/auth0-clients.tf create mode 100644 terraform/auth0/ministryofjustice-data-platform/auth0-custom-domain.tf diff --git a/terraform/auth0/ministryofjustice-data-platform-development/auth0-clients.tf b/terraform/auth0/ministryofjustice-data-platform-development/auth0-clients.tf index de6715e47a..46415c12d5 100644 --- a/terraform/auth0/ministryofjustice-data-platform-development/auth0-clients.tf +++ b/terraform/auth0/ministryofjustice-data-platform-development/auth0-clients.tf @@ -1,6 +1,8 @@ resource "auth0_client" "data_platform_control_panel" { - name = "data-platform-control-panel" - app_type = "regular_web" + 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" } resource "auth0_connection_client" "data_platform_control_panel_entra_id" { diff --git a/terraform/auth0/ministryofjustice-data-platform-development/auth0-custom-domain.tf b/terraform/auth0/ministryofjustice-data-platform-development/auth0-custom-domain.tf new file mode 100644 index 0000000000..a173834eac --- /dev/null +++ b/terraform/auth0/ministryofjustice-data-platform-development/auth0-custom-domain.tf @@ -0,0 +1,5 @@ +resource "auth0_custom_domain" "main" { + domain = "auth.development.data-platform.service.justice.gov.uk" + type = "auth0_managed_certs" + tls_policy = "recommended" +} diff --git a/terraform/auth0/ministryofjustice-data-platform/auth0-clients.tf b/terraform/auth0/ministryofjustice-data-platform/auth0-clients.tf new file mode 100644 index 0000000000..f2fdf48d25 --- /dev/null +++ b/terraform/auth0/ministryofjustice-data-platform/auth0-clients.tf @@ -0,0 +1,11 @@ +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" +} + +resource "auth0_connection_client" "data_platform_control_panel_entra_id" { + client_id = auth0_client.data_platform_control_panel.id + connection_id = auth0_connection.justiceuk_data_platform_auth0_ministryofjustice_production.id +} diff --git a/terraform/auth0/ministryofjustice-data-platform/auth0-custom-domain.tf b/terraform/auth0/ministryofjustice-data-platform/auth0-custom-domain.tf new file mode 100644 index 0000000000..7aa98cbae9 --- /dev/null +++ b/terraform/auth0/ministryofjustice-data-platform/auth0-custom-domain.tf @@ -0,0 +1,5 @@ +resource "auth0_custom_domain" "main" { + domain = "auth.data-platform.service.justice.gov.uk" + type = "auth0_managed_certs" + tls_policy = "recommended" +}