Skip to content

Commit ab843f5

Browse files
committed
Return the signed response when signing
If caller asked for a signed response, we would return None. Return the response from self.sign() instead.
1 parent dfcfda5 commit ab843f5

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
@@ -451,7 +451,7 @@ def _response(self, in_response_to, consumer_url=None, status=None,
451451
self._add_info(response, **kwargs)
452452

453453
if sign:
454-
self.sign(response, to_sign=to_sign)
454+
return self.sign(response, to_sign=to_sign)
455455
elif to_sign:
456456
return signed_instance_factory(response, self.sec, to_sign)
457457
else:

0 commit comments

Comments
 (0)