fox
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user