
resource "auth0_client" "client" {
  name            = "MOP Notification Service${local.workspace["iam_suffix"]} (Managed by Terraform)"
  app_type        = "non_interactive"
  is_first_party  = true
  oidc_conformant = false
  grant_types     = ["client_credentials"]
  client_metadata = {
    identity_id = "fa06a740-21f8-480a-9e7a-1f759b506e0b"
  }
}

resource "auth0_client_grant" "client_grant" {
  client_id = auth0_client.client.id
  audience  = "https://gateway.${local.workspace["subdomain"]}/"
  scope     = ["ignored"]
}
