* @package SimpleSAMLphp */ require_once('../../_include.php'); \SimpleSAML\Logger::info('SAML2.0 - IdP.SSOService: Accessing SAML 2.0 IdP endpoint SSOService'); $metadata = \SimpleSAML\Metadata\MetaDataStorageHandler::getMetadataHandler(); $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted'); $idp = \SimpleSAML\IdP::getById('saml2:' . $idpEntityId); try { \SimpleSAML\Module\saml\IdP\SAML2::receiveAuthnRequest($idp); } catch (\Exception $e) { if ($e->getMessage() === "Unable to find the current binding.") { throw new \SimpleSAML\Error\Error('SSOPARAMS', $e, 400); } else { throw $e; // do not ignore other exceptions! } } assert(false);