Skip to content
Snippets Groups Projects
Commit dde1ac0b authored by Olav Morken's avatar Olav Morken
Browse files

consent: Remove backwards-compatibility code.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3040 44740490-163a-0410-bde0-09ae8108e29a
parent 9effd3b2
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,6 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
assert('array_key_exists("entityid", $state["Source"])');
assert('array_key_exists("metadata-set", $state["Source"])');
$session = SimpleSAML_Session::getInstance();
$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
/**
......@@ -161,10 +160,6 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
if (isset($state['saml:sp:IdP'])) {
$idpmeta = $metadata->getMetaData($state['saml:sp:IdP'], 'saml20-idp-remote');
$state['Source'] = $idpmeta;
} elseif ($session->getIdP() !== null) {
// For backwards compatibility. TODO: Remove in version 1.8
$idpmeta = $metadata->getMetaData($session->getIdP(), 'saml20-idp-remote');
$state['Source'] = $idpmeta;
}
if ($this->_store !== null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment