From 44422540596d1f631fe333d099825d4b5f787f25 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Wed, 24 Jun 2020 18:13:21 +0300 Subject: [PATCH] Fix check for nameid_format set to the string None Signed-off-by: Ivan Kanakarakis --- src/saml2/client_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/saml2/client_base.py b/src/saml2/client_base.py index 3362d7e54..ad7de4ef8 100644 --- a/src/saml2/client_base.py +++ b/src/saml2/client_base.py @@ -363,7 +363,7 @@ def create_authn_request(self, destination, vorg="", scoping=None, else NAMEID_FORMAT_TRANSIENT if nameid_format_config is None else None - if nameid_format == 'None' + if nameid_format_config == 'None' else nameid_format_config )