From 2113029a1462c4dc30773855764aa74aca47786b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 2 Feb 2023 11:00:07 +0100 Subject: [PATCH] admin: allow post to system info api endpoint for debugging Signed-off-by: Jens Langhammer --- authentik/admin/api/system.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/authentik/admin/api/system.py b/authentik/admin/api/system.py index be71e1c91..1052b0840 100644 --- a/authentik/admin/api/system.py +++ b/authentik/admin/api/system.py @@ -14,6 +14,7 @@ from rest_framework.request import Request from rest_framework.response import Response from rest_framework.views import APIView +from authentik.api.authentication import TokenAuthentication from authentik.core.api.utils import PassiveSerializer from authentik.lib.utils.reflection import get_env from authentik.outposts.apps import MANAGED_OUTPOST @@ -102,3 +103,8 @@ class SystemView(APIView): def get(self, request: Request) -> Response: """Get system information.""" return Response(SystemSerializer(request).data) + + @extend_schema(responses={200: SystemSerializer(many=False)}) + def post(self, request: Request) -> Response: + """Get system information.""" + return Response(SystemSerializer(request).data)