Compare commits
1 commit
30815cfe10
...
30bed2db0a
| Author | SHA1 | Date | |
|---|---|---|---|
| 30bed2db0a |
1 changed files with 0 additions and 16 deletions
|
|
@ -20,20 +20,6 @@ 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:
|
||||
|
|
@ -63,7 +49,6 @@ data:
|
|||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, groups]]
|
||||
sub_mode: hashed_user_id
|
||||
include_claims_in_id_token: true
|
||||
|
||||
|
|
@ -120,7 +105,6 @@ data:
|
|||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, groups]]
|
||||
sub_mode: hashed_user_id
|
||||
include_claims_in_id_token: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue