From f3640bd3c0ee2f43efcfd506bb71d2b7b6761017 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Tue, 23 Jul 2024 12:18:32 +0200 Subject: [PATCH] sources/scim: fix schema loading with pwd is not set properly (#10574) --- authentik/sources/scim/views/v2/schemas.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/authentik/sources/scim/views/v2/schemas.py b/authentik/sources/scim/views/v2/schemas.py index 64d3a8bb5e..14fe9fdde7 100644 --- a/authentik/sources/scim/views/v2/schemas.py +++ b/authentik/sources/scim/views/v2/schemas.py @@ -2,6 +2,7 @@ from json import loads +from django.conf import settings from django.http import Http404 from django.urls import reverse from rest_framework.request import Request @@ -9,7 +10,10 @@ from rest_framework.response import Response from authentik.sources.scim.views.v2.base import SCIMView -with open("authentik/sources/scim/schemas/schema.json", encoding="utf-8") as SCHEMA_FILE: +with open( + settings.BASE_DIR / "authentik" / "sources" / "scim" / "schemas" / "schema.json", + encoding="utf-8", +) as SCHEMA_FILE: _raw_schemas = loads(SCHEMA_FILE.read())