This commit is contained in:
soraefir
2026-05-31 15:10:09 +02:00
parent 5640687004
commit a762db5310

View File

@@ -5,20 +5,7 @@ metadata:
blueprints.goauthentik.io/instantiate: "true" blueprints.goauthentik.io/instantiate: "true"
entries: entries:
# 1. Create the OIDC Scope Mapping for Groups # 1. Create the OAuth2/OIDC Provider
- 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
- model: authentik_providers_oauth2.oauth2provider - model: authentik_providers_oauth2.oauth2provider
identifiers: identifiers:
slug: homepage-provider slug: homepage-provider
@@ -39,13 +26,12 @@ entries:
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]] - !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, group]] - !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 - model: authentik_core.application
identifiers: identifiers:
slug: homepage-dashboard slug: homepage
attrs: attrs:
name: "Homepage Dashboard" name: "Homepage"
slug: "homepage"
launch_url: "@HOMEPAGE_DOMAIN@" launch_url: "@HOMEPAGE_DOMAIN@"
provider: provider:
!Find [ !Find [