From a762db5310d6e2d9597abfede6077765f4d6082f Mon Sep 17 00:00:00 2001 From: soraefir Date: Sun, 31 May 2026 15:10:09 +0200 Subject: [PATCH] fox --- .../containers/data/authentik/homepage.yaml | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/modules/server/containers/data/authentik/homepage.yaml b/modules/server/containers/data/authentik/homepage.yaml index 76fea00..0bdf8d8 100644 --- a/modules/server/containers/data/authentik/homepage.yaml +++ b/modules/server/containers/data/authentik/homepage.yaml @@ -5,20 +5,7 @@ metadata: blueprints.goauthentik.io/instantiate: "true" entries: - # 1. Create the OIDC Scope Mapping for Groups - - model: authentik_providers_oauth2.scopemapping - identifiers: - slug: homepage-scope-groups - attrs: - name: "Homepage Custom Scope: Groups" - scope_name: "groups" - description: "Pass user groups array to Homepage for conditional element rendering" - expression: | - return { - "groups": [group.name for group in request.user.ak_groups.all()] - } - - # 2. Create the OAuth2/OIDC Provider + # 1. Create the OAuth2/OIDC Provider - model: authentik_providers_oauth2.oauth2provider identifiers: slug: homepage-provider @@ -39,13 +26,12 @@ entries: - !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]] - !Find [authentik_providers_oauth2.scopemapping, [scope_name, group]] - # 3. Create the Application and link it to the Provider + # 2. Create the Application and link it to the Provider - model: authentik_core.application identifiers: - slug: homepage-dashboard + slug: homepage attrs: - name: "Homepage Dashboard" - slug: "homepage" + name: "Homepage" launch_url: "@HOMEPAGE_DOMAIN@" provider: !Find [