summaryrefslogtreecommitdiff
path: root/src/saml2/entity.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/saml2/entity.py')
-rw-r--r--src/saml2/entity.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/saml2/entity.py b/src/saml2/entity.py
index 9781310c..8779b192 100644
--- a/src/saml2/entity.py
+++ b/src/saml2/entity.py
@@ -421,7 +421,7 @@ class Entity(HTTPBase):
def _message(self, request_cls, destination=None, message_id=0,
consent=None, extensions=None, sign=False, sign_prepare=False,
- **kwargs):
+ nsprefix=None, **kwargs):
"""
Some parameters appear in all requests so simplify by doing
it in one place
@@ -456,6 +456,9 @@ class Entity(HTTPBase):
if extensions:
req.extensions = extensions
+ if nsprefix:
+ req.register_prefix(nsprefix)
+
if sign:
return reqid, self.sign(req, sign_prepare=sign_prepare)
else: