-
Notifications
You must be signed in to change notification settings - Fork 446
Add a namespace for AttributeValue xsi:type value #365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a namespace for AttributeValue xsi:type value #365
Conversation
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.
|
Oops! This fixes the same issue as #336, but in a different way. |
|
Either #336 or this pr should be merged, not both. both look good to me 👍 |
jaustinpage
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
jaustinpage
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either #336 or this pr should be merged, not both. both look good to me 👍
|
src/saml2/saml.py
Outdated
|
|
||
| try: | ||
| self.extension_attributes[XSI_TYPE] = typ | ||
| self.extension_attributes['xmlns:xs'] = XS_NAMESPACE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/rohe/pysaml2/blob/master/src/saml2/__init__.py#L386 does it make sense to use the setter?
|
@jgehrcke it looks like a fallback. The access that ashima is doing looks consistent with other code in here... https://github.com/rohe/pysaml2/blob/master/src/saml2/saml.py#L241
|
As per @jgehrcke's comment
|
@jgehrcke Thanks for you comment. I've updated my code to conditionally add this attribute. And it looks like @jaustinpage has answered your other questions. I'm ok with either PR getting in as long as the issue is fixed. |
This fixes the issue when integrating with onelogin's python3-saml client: