Security audit #1
This commit is contained in:
parent
68bc591150
commit
cd04d34b23
8 changed files with 131 additions and 56 deletions
|
|
@ -124,7 +124,7 @@ entries:
|
|||
name: kaboot-ai-access
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# GROUPS SCOPE MAPPING
|
||||
# SCOPE MAPPINGS
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
- id: groups-scope-mapping
|
||||
|
|
@ -138,6 +138,17 @@ entries:
|
|||
expression: |
|
||||
return {"groups": [group.name for group in request.user.ak_groups.all()]}
|
||||
|
||||
- id: audience-scope-mapping
|
||||
model: authentik_providers_oauth2.scopemapping
|
||||
identifiers:
|
||||
managed: goauthentik.io/providers/oauth2/scope-kaboot-audience
|
||||
attrs:
|
||||
name: "Kaboot Audience Scope"
|
||||
scope_name: kaboot
|
||||
description: "Include audience claim for Kaboot backend validation"
|
||||
expression: |
|
||||
return {"aud": "kaboot-spa"}
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# OAUTH2/OIDC PROVIDER
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
|
@ -172,6 +183,7 @@ entries:
|
|||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, offline_access]]
|
||||
- !KeyOf groups-scope-mapping
|
||||
- !KeyOf audience-scope-mapping
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# APPLICATION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue