diff --git a/lib/Authentication/AuthTokens/ShibAuthToken.php b/lib/Authentication/AuthTokens/ShibAuthToken.php index 3bcb72f3b..13615e1e9 100644 --- a/lib/Authentication/AuthTokens/ShibAuthToken.php +++ b/lib/Authentication/AuthTokens/ShibAuthToken.php @@ -164,26 +164,6 @@ private function getAttributesInitToken(){ $this->userDetails = array('AuthenticationRealm' => array('EGI Proxy IdP')); return; } - else if($idp == 'https://aai-demo.eosc-portal.eu/proxy/saml2/idp/metadata.php'){ - if( empty($_SERVER['voPersonID'])){ - die('Did not receive required voPersonID attributes from the EOSC Demo Proxy Identity Provider to complete authentication, please contact gocdb-admins'); - } - if(empty($_SERVER['entitlement'])){ - die('Did not receive the required entitlement attribute from the EOSC Demo Proxy Identity Provider, please contact gocdb-admins'); - } - $entitlementValuesArray = explode(';', $_SERVER['entitlement']); - if( !in_array('urn:geant:eosc-portal.eu:res:gocdb.eosc-portal.eu', $entitlementValuesArray) ){ - $HTML = ''; - $HTML .= "
"; - $HTML .= 'Logout'; - $HTML .= "
"; - echo ($HTML); - die(); - } - $this->principal = $_SERVER['voPersonID']; - $this->userDetails = array('AuthenticationRealm' => array('EOSC Demo Proxy IdP')); - return; - } else if($idp == 'https://aai.eosc-portal.eu/proxy/saml2/idp/metadata.php'){ if( empty($_SERVER['voPersonID'])){ die('Did not receive required voPersonID attributes from the EOSC Proxy Identity Provider to complete authentication, please contact gocdb-admins');