Skip to content

Commit 4360985

Browse files
committed
Lookup signer only if signing is requested
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 788a695 commit 4360985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def apply_binding(self, binding, msg_str, destination="", relay_state="",
225225
info["method"] = "POST"
226226
elif binding == BINDING_HTTP_REDIRECT:
227227
logger.info("HTTP REDIRECT")
228-
if kwargs.get('sigalg', ''):
228+
if sign and kwargs.get('sigalg', ''):
229229
signer = self.sec.sec_backend.get_signer(kwargs['sigalg'])
230230
else:
231231
signer = None

0 commit comments

Comments
 (0)