0byt3m1n1
Path:
/
home
/
mgatv524
/
criativa.mgaplay.com.br
/
vendor
/
onelogin
/
php-saml
/
endpoints
/
[
Home
]
File: metadata.php
<?php /** * SP Metadata Endpoint */ require_once dirname(__DIR__).'/_toolkit_loader.php'; try { $auth = new OneLogin_Saml2_Auth(); $settings = $auth->getSettings(); $metadata = $settings->getSPMetadata(); $errors = $settings->validateMetadata($metadata); if (empty($errors)) { header('Content-Type: text/xml'); echo $metadata; } else { throw new OneLogin_Saml2_Error( 'Invalid SP metadata: '.implode(', ', $errors), OneLogin_Saml2_Error::METADATA_SP_INVALID ); } } catch (Exception $e) { echo $e->getMessage(); }