forked from catalin/fukuops
feat: add open_in_new_tab and app_icon variables to the authentik application tofu module
This commit is contained in:
parent
7f450de269
commit
909eb5913f
3 changed files with 13 additions and 1 deletions
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -37,4 +37,14 @@ variable "oidc_signing_key" {
|
||||||
type = string
|
type = string
|
||||||
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
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue