Compare commits
1 commit
23dd7c3c2b
...
30815cfe10
| Author | SHA1 | Date | |
|---|---|---|---|
| 30815cfe10 |
1 changed files with 15 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ data:
|
|||
labels:
|
||||
blueprints.goauthentik.io/description: "Shared groups and identity resources"
|
||||
entries:
|
||||
# admins group — gates access to admin-only applications
|
||||
- model: authentik_core.group
|
||||
id: admins-group
|
||||
identifiers:
|
||||
|
|
@ -19,6 +20,20 @@ data:
|
|||
attrs:
|
||||
name: admins
|
||||
|
||||
# groups scope mapping — returns user's group names in OIDC tokens
|
||||
- model: authentik_providers_oauth2.scopemapping
|
||||
id: groups-scope
|
||||
identifiers:
|
||||
scope_name: groups
|
||||
attrs:
|
||||
name: "OAuth Mapping: groups"
|
||||
scope_name: groups
|
||||
description: "Map user groups to OIDC groups claim"
|
||||
expression: |
|
||||
return {
|
||||
"groups": [group.name for group in request.user.ak_groups.all()],
|
||||
}
|
||||
|
||||
grafana.yaml: |
|
||||
version: 1
|
||||
metadata:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue