parseRemoteXML()
parseRemoteXML(string $url, string $entityId = null, string $desiredNameIdFormat = null, string $desiredSSOBinding = \OneLogin_Saml2_Constants::BINDING_HTTP_REDIRECT, string $desiredSLOBinding = \OneLogin_Saml2_Constants::BINDING_HTTP_REDIRECT) : array
Get IdP Metadata Info from URL
This class does not validate in any way the URL that is introduced, make sure to validate it properly before use it in the parseRemoteXML method in order to avoid security issues like SSRF attacks.
Parameters
string | $url | URL where the IdP metadata is published |
string | $entityId | Entity Id of the desired IdP, if no entity Id is provided and the XML metadata contains more than one IDPSSODescriptor, the first is returned |
string | $desiredNameIdFormat | If available on IdP metadata, use that nameIdFormat |
string | $desiredSSOBinding | Parse specific binding SSO endpoint. |
string | $desiredSLOBinding | Parse specific binding SLO endpoint. |
Returns
array —metadata info in php-saml settings format