From 6766b12bd1e85b9d53222202821a7be3f71675d7 Mon Sep 17 00:00:00 2001 From: Jens L Date: Wed, 24 May 2023 00:51:16 +0200 Subject: [PATCH] events: fix ak_create_event using wrong request for event creation (#5731) Signed-off-by: Jens Langhammer --- authentik/lib/expression/evaluator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/lib/expression/evaluator.py b/authentik/lib/expression/evaluator.py index 7a7f07022..02970c242 100644 --- a/authentik/lib/expression/evaluator.py +++ b/authentik/lib/expression/evaluator.py @@ -154,7 +154,7 @@ class BaseEvaluator: if "request" in context and isinstance(context["request"], PolicyRequest): policy_request: PolicyRequest = context["request"] if policy_request.http_request: - event.from_http(policy_request) + event.from_http(policy_request.http_request) return event.save()