diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-02-03 10:24:47 +0100 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-02-03 10:24:47 +0100 |
commit | 7b025c619ffd187ededb102143eaf6a6c87ee918 (patch) | |
tree | e030d7a58ca2e5d21be24008ce3ec959eb758979 /src/saml2/client.py | |
parent | 3bc41c2d71447e9404bf439cb9c05eb913fd21e9 (diff) | |
download | pysaml2-7b025c619ffd187ededb102143eaf6a6c87ee918.tar.gz |
Allow setting namespace prefixes.2.3.0
Diffstat (limited to 'src/saml2/client.py')
-rw-r--r-- | src/saml2/client.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/saml2/client.py b/src/saml2/client.py index ca83bf9a..d64bd806 100644 --- a/src/saml2/client.py +++ b/src/saml2/client.py @@ -342,7 +342,7 @@ class Saml2Client(Base): attribute=None, sp_name_qualifier=None, name_qualifier=None, nameid_format=None, real_id=None, consent=None, extensions=None, - sign=False, binding=BINDING_SOAP): + sign=False, binding=BINDING_SOAP, nsprefix=None): """ Does a attribute request to an attribute authority, this is by default done over SOAP. @@ -359,6 +359,8 @@ class Saml2Client(Base): :param real_id: The identifier which is the key to this entity in the identity database :param binding: Which binding to use + :param nsprefix: Namespace prefixes preferred before those automatically + produced. :return: The attributes returned if BINDING_SOAP was used. HTTP args if BINDING_HTT_POST was used. """ @@ -393,7 +395,7 @@ class Saml2Client(Base): mid = sid() query = self.create_attribute_query(destination, subject_id, attribute, mid, consent, - extensions, sign) + extensions, sign, nsprefix) self.state[query.id] = {"entity_id": entityid, "operation": "AttributeQuery", "subject_id": subject_id, |