feat: add open_in_new_tab and app_icon variables to the authentik application tofu module

This commit is contained in:
cătălin 2024-03-24 17:05:58 +01:00
commit 909eb5913f
No known key found for this signature in database
3 changed files with 13 additions and 1 deletions

View file

@ -29,4 +29,5 @@ module "argo-workflows" {
client_secret = var.argo_workflows_client_secret client_secret = var.argo_workflows_client_secret
app_access_group_id = authentik_group.ci.id app_access_group_id = authentik_group.ci.id
redirect_uris = ["https://ci.fuku/oauth2/callback"] redirect_uris = ["https://ci.fuku/oauth2/callback"]
app_icon = "https://argoproj.github.io/icons/icon-512x512.png"
} }

View file

@ -36,7 +36,8 @@ resource "authentik_application" "app" {
name = var.app_name name = var.app_name
slug = var.app_slug slug = var.app_slug
protocol_provider = authentik_provider_oauth2.provider_oidc.id 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" { resource "authentik_policy_binding" "app_access" {
target = authentik_application.app.uuid target = authentik_application.app.uuid

View file

@ -38,3 +38,13 @@ variable "oidc_signing_key" {
description = "Signing key" description = "Signing key"
default = "c4ff5edf-3cad-4093-9326-44fea088e670" 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
}