0001-authentic-agent-pass-bytes-to-ElementTree-for-metada.patch
hobo/agent/authentic2/management/commands/hobo_deploy.py | ||
---|---|---|
279 | 279 | |
280 | 280 |
def check_saml_metadata(self, saml_metadata): |
281 | 281 |
try: |
282 |
root = ET.fromstring(saml_metadata) |
|
282 |
root = ET.fromstring(saml_metadata.encode('utf-8'))
|
|
283 | 283 |
except ET.ParseError: |
284 | 284 |
return False |
285 | 285 |
return root.tag == '{%s}EntityDescriptor' % lasso.SAML2_METADATA_HREF |
286 |
- |