Liferay as IDP without metadata file

Recently, these was a scenario when the third party wants to use liferay application as IDP, but as per the liferay documentation it needs a metadata xml file to be uploaded with respect to Service Provider.

But unfortunately the SP does not have an option to generate the xml or URL that provides it. So we have done that by using a simple tool from https://www.samltool.com/sp_metadata.php which generates xml file based on the information known to us. The remaining process is same as per the documentation and using a SAML tracer we can test the functionality