From 0bf1b4d74cbb4a61ba1fad0eb4e4646d5f106529 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Sun, 16 Nov 2025 12:33:48 +0100 Subject: [PATCH] Update access_service_auth.tf --- access_service_auth.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/access_service_auth.tf b/access_service_auth.tf index 8b7f394..77d107a 100644 --- a/access_service_auth.tf +++ b/access_service_auth.tf @@ -20,13 +20,13 @@ resource "cloudflare_zero_trust_access_identity_provider" "authentik_oidc" { name = "Authentik OIDC" type = "oidc" config { - auth_url = "https://authentik.${var.cloudflare_zone}/application/o/authorize/" - certs_url = "https://authentik.${var.cloudflare_zone}/application/o/cloudflare-access/jwks/" + auth_url = "https://authentik.${local.cloudflare_zone_id}/application/o/authorize/" + certs_url = "https://authentik.${local.cloudflare_zone_id}/application/o/cloudflare-access/jwks/" claims = ["given_name", "preferred_username", "nickname", "groups", "role"] - client_id = var.authentik_oidc_client_id - client_secret = var.authentik_oidc_secret + client_id = local.authentik_oidc_client_id + client_secret = local.authentik_oidc_secret email_claim_name = "email" scopes = ["openid", "email", "profile"] - token_url = "https://authentik.${var.cloudflare_zone}/application/o/token/" + token_url = "https://authentik.${local.cloudflare_zone_id}/application/o/token/" } } \ No newline at end of file