In keystone.middleware.core.XmlBodyMiddleware, we can try to use serializer.from_xml() to check if the body is already a XML file. Or we can use serializer.from_xml() in keystone.contrib.federation.controllers.SAMLMetadataV3 to parse the metadata body before calling wsgi.render_response().
here are some possible solutions:
In keystone. middleware. core.XmlBodyMid dleware, we can try to use serializer. from_xml( ) to check if the body is already a XML file. Or we can use serializer. from_xml( ) in keystone. contrib. federation. controllers. SAMLMetadataV3 to parse the metadata body before calling wsgi.render_ response( ).
Any thoughts?