Exception

Description

Error on parseRemoteXML. Error parsing metadata. Error parsing metadata

Source File

/var/www/html/clavisng-online/vendor/onelogin/php-saml/src/Saml2/IdPMetadataParser.php (59)

0048:             curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
0049:             curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
0050:             curl_setopt($ch, CURLOPT_FAILONERROR, 1);
0051: 
0052:             $xml = curl_exec($ch);
0053:             if ($xml !== false) {
0054:                 $metadataInfo = self::parseXML($xml, $entityId, $desiredNameIdFormat, $desiredSSOBinding, $desiredSLOBinding);
0055:             } else {
0056:                 throw new Exception(curl_error($ch), curl_errno($ch));
0057:             }
0058:         } catch (Exception $e) {
0059: throw new Exception('Error on parseRemoteXML. '.$e->getMessage());
0060: } 0061: return $metadataInfo; 0062: } 0063: 0064: /** 0065: * Get IdP Metadata Info from File 0066: * 0067: * @param string $filepath File path 0068: * @param string $entityId Entity Id of the desired IdP, if no 0069: * entity Id is provided and the XML 0070: * metadata contains more than one 0071: * IDPSSODescriptor, the first is returned

Stack Trace

#0 /var/www/html/clavisng-online/protected/Lib/ClavisSAML.php(183): OneLogin\Saml2\IdPMetadataParser::parseRemoteXML('https://hfarmb2...', NULL, NULL, 'urn:oasis:names...', 'urn:oasis:names...')
#1 /var/www/html/clavisng-online/protected/Lib/ClavisSAML.php(37): ClavisSAML->getSiteSettings('urn:oasis:names...', 'urn:oasis:names...')
#2 /var/www/html/clavisng-online/protected/Services/DngSSO.php(86): ClavisSAML->__construct('/dng', 'urn:oasis:names...', 'urn:oasis:names...')
#3 /var/www/html/clavisng-online/protected/Services/ClavisSSO.php(34): DngSSO->initSAMLHandler()
#4 /var/www/html/clavisng-online/vendor/pradosoft/prado/framework/pradolite.php(10772): ClavisSSO->run()
#5 /var/www/html/clavisng-online/vendor/pradosoft/prado/framework/pradolite.php(10303): TApplication->runService()
#6 /var/www/html/clavisng-online/index.php(88): TApplication->run()
#7 {main}
2024-07-23 03:46 Apache/2.4.29 (Ubuntu) PRADO/3.2.4