From 60271e02f4d765f6e5a5fb8545f67af21bc5dda7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20Ho=CC=88rberg?= Date: Thu, 19 Mar 2015 16:54:11 +0100 Subject: [PATCH] Added sp entity id for assertion with only attributes in advice element. Without sp entity id the ec filtering was not performed. --- src/saml2/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/saml2/server.py b/src/saml2/server.py index 24cc392..c6d3169 100644 --- a/src/saml2/server.py +++ b/src/saml2/server.py @@ -358,7 +358,7 @@ class Server(Entity): # authn_statement = None if encrypt_assertion and encrypted_advice_attributes: - assertion_attributes = self.setup_assertion(None, None, None, None, None, policy, + assertion_attributes = self.setup_assertion(None, sp_entity_id, None, None, None, policy, None, None, identity, best_effort, sign_response, False) assertion = self.setup_assertion(authn, sp_entity_id, in_response_to, consumer_url, name_id, policy, _issuer, authn_statement, [], True,