public static function getMetadataHandler() { if (self::$metadataHandler === null) { self::$metadataHandler = new SimpleSAML_Metadata_MetaDataStorageHandler(); } return self::$metadataHandler; }
public function actionSso() { $metadata = \SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted'); $idp = \SimpleSAML_IdP::getById('saml2:' . $idpEntityId); \sspmod_saml_IdP_SAML2::receiveAuthnRequest($idp); assert('FALSE'); }