From aa4f7fb2b655a7e249c3202da157b291c189fac9 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 765947ce7..f9e1e4d49 100644 --- a/authentik/providers/saml/processors/assertion.py +++ b/authentik/providers/saml/processors/assertion.py @@ -163,7 +163,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(