Update access_service_auth.tf
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 12s

This commit is contained in:
2025-11-16 12:37:38 +01:00
parent 0bf1b4d74c
commit 7841ed6aab

View File

@@ -7,7 +7,9 @@ resource "cloudflare_zero_trust_access_identity_provider" "gmail" {
account_id = local.cloudflare_account_id account_id = local.cloudflare_account_id
name = "Gmail" name = "Gmail"
type = "google" type = "google"
config { zone_id = local.cloudflare_zone_id
config = {
client_id = var.google_client_id client_id = var.google_client_id
client_secret = var.google_secret client_secret = var.google_secret
email_claim_name = "email" email_claim_name = "email"
@@ -19,7 +21,9 @@ resource "cloudflare_zero_trust_access_identity_provider" "authentik_oidc" {
account_id = local.cloudflare_account_id account_id = local.cloudflare_account_id
name = "Authentik OIDC" name = "Authentik OIDC"
type = "oidc" type = "oidc"
config { zone_id = local.cloudflare_zone_id
config = {
auth_url = "https://authentik.${local.cloudflare_zone_id}/application/o/authorize/" auth_url = "https://authentik.${local.cloudflare_zone_id}/application/o/authorize/"
certs_url = "https://authentik.${local.cloudflare_zone_id}/application/o/cloudflare-access/jwks/" certs_url = "https://authentik.${local.cloudflare_zone_id}/application/o/cloudflare-access/jwks/"
claims = ["given_name", "preferred_username", "nickname", "groups", "role"] claims = ["given_name", "preferred_username", "nickname", "groups", "role"]