From a449f9c69b780191b3011aeed7de863c0ef7fcd2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 3 Aug 2021 22:40:56 +0200 Subject: [PATCH] providers/saml: fix error when PropertyMapping return value isn't string Signed-off-by: Jens Langhammer --- authentik/providers/saml/processors/assertion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/providers/saml/processors/assertion.py b/authentik/providers/saml/processors/assertion.py index db6f46400..3391d16b4 100644 --- a/authentik/providers/saml/processors/assertion.py +++ b/authentik/providers/saml/processors/assertion.py @@ -157,7 +157,7 @@ class AssertionProcessor: provider=self.provider, ) if value is not None: - name_id.text = value + name_id.text = str(value) return name_id except PropertyMappingExpressionException as exc: Event.new(