Skip to content

Commit

Permalink
Added the sign_prepare parameter. Will add the Signature element but …
Browse files Browse the repository at this point in the history
…do nothing more.
  • Loading branch information
Roland Hedberg committed Apr 19, 2013
1 parent 4fe55ac commit f6933b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/saml2/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ def create_authn_request(self, destination, vorg="", scoping=None,

def create_attribute_query(self, destination, name_id=None,
attribute=None, message_id=0, consent=None,
extensions=None, sign=False, **kwargs):
extensions=None, sign=False, sign_prepare=False,
**kwargs):
""" Constructs an AttributeQuery
:param destination: To whom the query should be sent
Expand All @@ -321,6 +322,7 @@ def create_attribute_query(self, destination, name_id=None,
:param consent: Whether the principal have given her consent
:param extensions: Possible extensions
:param sign: Whether the query should be signed or not.
:param sign_prepare: Whether the Signature element should be added.
:return: An AttributeQuery instance
"""

Expand Down Expand Up @@ -349,7 +351,7 @@ def create_attribute_query(self, destination, name_id=None,
attribute = do_attributes(attribute)

return self._message(AttributeQuery, destination, message_id, consent,
extensions, sign, subject=subject,
extensions, sign, sign_prepare, subject=subject,
attribute=attribute)

# MUST use SOAP for
Expand Down

0 comments on commit f6933b0

Please sign in to comment.