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
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"
}

View file

@ -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

View file

@ -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
}