From 909eb5913f8ea1452f22f730678c30939e04fe0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?c=C4=83t=C4=83lin?= Date: Sun, 24 Mar 2024 17:05:58 +0100 Subject: [PATCH] feat: add `open_in_new_tab` and `app_icon` variables to the authentik application tofu module --- tofu/authentik/main.tf | 1 + tofu/modules/authentik/main.tf | 3 ++- tofu/modules/authentik/vars.tf | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tofu/authentik/main.tf b/tofu/authentik/main.tf index 985847c..ad1dbdd 100644 --- a/tofu/authentik/main.tf +++ b/tofu/authentik/main.tf @@ -29,4 +29,5 @@ module "argo-workflows" { client_secret = var.argo_workflows_client_secret app_access_group_id = authentik_group.ci.id redirect_uris = ["https://ci.fuku/oauth2/callback"] + app_icon = "https://argoproj.github.io/icons/icon-512x512.png" } \ No newline at end of file diff --git a/tofu/modules/authentik/main.tf b/tofu/modules/authentik/main.tf index ad233fe..3ca08d8 100644 --- a/tofu/modules/authentik/main.tf +++ b/tofu/modules/authentik/main.tf @@ -36,7 +36,8 @@ resource "authentik_application" "app" { name = var.app_name slug = var.app_slug protocol_provider = authentik_provider_oauth2.provider_oidc.id - + open_in_new_tab = var.open_in_new_tab + meta_icon = var.app_icon } resource "authentik_policy_binding" "app_access" { target = authentik_application.app.uuid diff --git a/tofu/modules/authentik/vars.tf b/tofu/modules/authentik/vars.tf index 8c9d226..bad4c6b 100644 --- a/tofu/modules/authentik/vars.tf +++ b/tofu/modules/authentik/vars.tf @@ -37,4 +37,14 @@ variable "oidc_signing_key" { type = string description = "Signing key" default = "c4ff5edf-3cad-4093-9326-44fea088e670" +} + +variable "open_in_new_tab" { + type = bool + description = "Open apps in a new tab" + default = true +} + +variable "app_icon" { + type = string } \ No newline at end of file