Skip to content

Commit

Permalink
✨ Auth0 custom domain (#2442)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Woffenden <jacob.woffenden@digital.justice.gov.uk>
  • Loading branch information
Jacob Woffenden authored Nov 20, 2023
1 parent 8bf702e commit 25e7ea9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
11 changes: 11 additions & 0 deletions terraform/auth0/ministryofjustice-data-platform/auth0-clients.tf
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "auth0_custom_domain" "main" {
domain = "auth.data-platform.service.justice.gov.uk"
type = "auth0_managed_certs"
tls_policy = "recommended"
}

0 comments on commit 25e7ea9

Please sign in to comment.