summaryrefslogtreecommitdiff
path: root/src/saml2/entity.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/saml2/entity.py')
-rw-r--r--src/saml2/entity.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saml2/entity.py b/src/saml2/entity.py
index 3320ed99..7b857373 100644
--- a/src/saml2/entity.py
+++ b/src/saml2/entity.py
@@ -225,8 +225,9 @@ class Entity(HTTPBase):
info["method"] = "POST"
elif binding == BINDING_HTTP_REDIRECT:
logger.info("HTTP REDIRECT")
- if sign and kwargs.get('sigalg', ''):
- signer = self.sec.sec_backend.get_signer(kwargs['sigalg'])
+ sigalg = kwargs.get("sigalg")
+ if sign and sigalg:
+ signer = self.sec.sec_backend.get_signer(sigalg)
else:
signer = None
info = self.use_http_get(msg_str, destination, relay_state, typ,