authentic agent: pass bytes to ElementTree for metadata validation (#35419)
This commit is contained in:
parent
24477e2fd8
commit
ec976813b0
|
@ -279,7 +279,7 @@ class Command(hobo_deploy.Command):
|
|||
|
||||
def check_saml_metadata(self, saml_metadata):
|
||||
try:
|
||||
root = ET.fromstring(saml_metadata)
|
||||
root = ET.fromstring(saml_metadata.encode('utf-8'))
|
||||
except ET.ParseError:
|
||||
return False
|
||||
return root.tag == '{%s}EntityDescriptor' % lasso.SAML2_METADATA_HREF
|
||||
|
|
Loading…
Reference in New Issue