From 6ea3cfc0bf65af9698884c2387b9901761ad7d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Fri, 17 May 2024 12:11:06 +0200 Subject: [PATCH] fix redirect url --- oauth2/oauth2.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2/oauth2.tf b/oauth2/oauth2.tf index 4b2d2aa..b3f65b4 100644 --- a/oauth2/oauth2.tf +++ b/oauth2/oauth2.tf @@ -57,7 +57,7 @@ resource "authentik_provider_oauth2" "oauth2" { signing_key = data.authentik_certificate_key_pair.ca.id property_mappings = data.authentik_scope_mapping.oauth2.ids redirect_uris = [ - "https://${var.dns_name}/${var.redirect_path}" + "https://${var.redirect_path!=""?"${var.dns_name}/${var.redirect_path}":"${var.dns_name}"}" ] }