From dfe0404c519604797908d0efac4fcdccb69f45e9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 5 Feb 2022 15:41:26 +0100 Subject: [PATCH] sources/saml: fix server error Signed-off-by: Jens Langhammer --- authentik/sources/saml/processors/request.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/sources/saml/processors/request.py b/authentik/sources/saml/processors/request.py index 8a6d056df..f7fe9cc10 100644 --- a/authentik/sources/saml/processors/request.py +++ b/authentik/sources/saml/processors/request.py @@ -10,7 +10,7 @@ from lxml.etree import Element # nosec from authentik.providers.saml.utils import get_random_id from authentik.providers.saml.utils.encoding import deflate_and_base64_encode from authentik.providers.saml.utils.time import get_time_string -from authentik.sources.saml.models import SAMLSource +from authentik.sources.saml.models import SAMLBindingTypes, SAMLSource from authentik.sources.saml.processors.constants import ( DIGEST_ALGORITHM_TRANSLATION_MAP, NS_MAP, @@ -62,7 +62,7 @@ class RequestProcessor: auth_n_request.attrib["Destination"] = self.source.sso_url auth_n_request.attrib["ID"] = self.request_id auth_n_request.attrib["IssueInstant"] = self.issue_instant - auth_n_request.attrib["ProtocolBinding"] = self.source.binding_type.uri + auth_n_request.attrib["ProtocolBinding"] = SAMLBindingTypes(self.source.binding_type).uri auth_n_request.attrib["Version"] = "2.0" # Create issuer object auth_n_request.append(self.get_issuer())