Skip to content

Commit cfad434

Browse files
authored
Merge pull request #365 from ashimaathri/add-namespace-to-attribute-value
Add a namespace for AttributeValue xsi:type value
2 parents b028d0f + b3cc7c4 commit cfad434

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/saml2/saml.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ def set_type(self, typ):
169169
except AttributeError:
170170
self._extatt[XSI_TYPE] = typ
171171

172+
if typ.startswith('xs:'):
173+
try:
174+
self.extension_attributes['xmlns:xs'] = XS_NAMESPACE
175+
except AttributeError:
176+
self._extatt['xmlns:xs'] = XS_NAMESPACE
177+
178+
172179
def get_type(self):
173180
try:
174181
return self.extension_attributes[XSI_TYPE]

0 commit comments

Comments
 (0)