diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-12-07 23:13:04 +0200 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-12-07 23:21:00 +0200 |
commit | 28784008982f884a5472cbefdf9866fcd6031e48 (patch) | |
tree | b520d5e668bccd428faae8a1b11e3fe698fbc6a6 /src/saml2/entity.py | |
parent | ac59e8a3763892379d2bb48ad9f8061096a51456 (diff) | |
download | pysaml2-28784008982f884a5472cbefdf9866fcd6031e48.tar.gz |
Formatting and restructure
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'src/saml2/entity.py')
-rw-r--r-- | src/saml2/entity.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/saml2/entity.py b/src/saml2/entity.py index 3b6c109f..88c2606b 100644 --- a/src/saml2/entity.py +++ b/src/saml2/entity.py @@ -516,8 +516,8 @@ class Entity(HTTPBase): # XXX DONE will actually use sign the POST-Binding # XXX DONE deepest level - needs to decide the sign value # XXX DONE calls self.sign must figure out sign - # XXX ensure both SPs and IdPs go through this - # XXX ensure this works for the POST-Binding + # XXX DONE ensure both SPs and IdPs go through this + # XXX DONE ensure this works for the POST-Binding def _message( self, request_cls, @@ -673,6 +673,8 @@ class Entity(HTTPBase): return response # XXX DONE calls self.sign must figure out sign + # XXX calls signed_instance_factory - must have called pre_signature_part + # XXX calls pre_signature_part - must figure out sign_alg/digest_alg def _response( self, in_response_to, @@ -746,8 +748,8 @@ class Entity(HTTPBase): sign = sign if sign is not None else self.should_sign if ( - not sign - and to_sign + to_sign + and not sign and not encrypt_assertion ): return signed_instance_factory(response, self.sec, to_sign) |