summaryrefslogtreecommitdiff
path: root/src/saml2/saml.py
diff options
context:
space:
mode:
authorAshima Athri <ashimaathri@gmail.com>2016-10-05 17:09:04 -0400
committerAshima Athri <ashimaathri@gmail.com>2016-10-05 17:09:04 -0400
commit4d31c9cc11ed6fd96d72a2ffa38172b913c7b4bc (patch)
treebe6a01d345ad94092a55359fdc9f9d1cbcda0384 /src/saml2/saml.py
parent05d9276ab4764f1a895fa2b0e50d0e05fc3160dd (diff)
downloadpysaml2-4d31c9cc11ed6fd96d72a2ffa38172b913c7b4bc.tar.gz
Add a namespace for AttributeValue xsi:type value
This fixes the issue when integrating with onelogin's python3-saml client: Element '{urn:oasis:names:tc:SAML:2.0:assertion}AttributeValue', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The QName value 'xs:string' has no corresponding namespace declaration in scope.
Diffstat (limited to 'src/saml2/saml.py')
-rw-r--r--src/saml2/saml.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saml2/saml.py b/src/saml2/saml.py
index 483611f1..55fd6550 100644
--- a/src/saml2/saml.py
+++ b/src/saml2/saml.py
@@ -166,7 +166,9 @@ class AttributeValueBase(SamlBase):
try:
self.extension_attributes[XSI_TYPE] = typ
+ self.extension_attributes['xmlns:xs'] = XS_NAMESPACE
except AttributeError:
+ self._extatt['xmlns:xs'] = XS_NAMESPACE
self._extatt[XSI_TYPE] = typ
def get_type(self):