0001-misc-don-t-treat-basic-attributes-as-XML-43193.patch
mellon/views.py | ||
---|---|---|
216 | 216 |
for at in ats.attribute: |
217 | 217 |
values = attributes.setdefault(at.name, []) |
218 | 218 |
for value in at.attributeValue: |
219 |
contents = [lasso_decode(any.exportToXml()) for any in value.any] |
|
219 |
if at.nameFormat == lasso.SAML2_ATTRIBUTE_NAME_FORMAT_BASIC: |
|
220 |
contents = [lasso_decode(any.content) for any in value.any] |
|
221 |
else: |
|
222 |
contents = [lasso_decode(any.exportToXml()) for any in value.any] |
|
220 | 223 |
content = ''.join(contents) |
221 | 224 |
values.append(content) |
222 | 225 |
attributes['issuer'] = login.remoteProviderId |
223 |
- |