diff --git a/htdocs/web_portal/static_html/goc5_logo.html b/htdocs/web_portal/static_html/goc5_logo.html
index 4f2641bbb..0f0407c3a 100644
--- a/htdocs/web_portal/static_html/goc5_logo.html
+++ b/htdocs/web_portal/static_html/goc5_logo.html
@@ -4,7 +4,7 @@
";
$HTML .= '
Logout';
@@ -141,28 +139,28 @@ private function getAttributesInitToken(){
echo ($HTML);
die();
}
- $this->principal = $_SERVER['epuid'];
+ $this->principal = $_SERVER['voPersonID'];
$this->userDetails = array('AuthenticationRealm' => array('EGI Proxy IdP'));
return;
}
- else if($idp == 'https://aai-dev.egi.eu/proxy/saml2/idp/metadata.php'){
- if( empty($_SERVER['epuid'])){
- die('Did not receive required ePUID attributes from the EGI Dev Proxy Identity Provider to complete authentication, please contact gocdb-admins');
+ else if($idp == 'https://aai-demo.egi.eu/auth/realms/egi'){
+ if( empty($_SERVER['voPersonID'])){
+ die('Did not receive required voPersonID attributes from the EGI 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 EGI Dev Proxy IdP, please contact gocdb-admins');
- }
- $entitlementValuesArray = explode(';', $_SERVER['entitlement']);
+ die('Did not receive the required entitlement attribute from the EGI Demo Proxy IdP, please contact gocdb-admins');
+ }
+ $entitlementValuesArray = explode(';', $_SERVER['entitlement']);
if( !in_array('urn:mace:egi.eu:res:gocdb#aai.egi.eu', $entitlementValuesArray) ){
- $HTML = '
- You authenticated to the EGI Dev Identity Provider using a method that does not provide a GOCDB entitlement.
- Login is required with a gocdb entitlement.
- To gain access, you will need to login to the Proxy IdP using a scheme that provides a gocdb entitlement.
- Please logout or restart your browser and attempt to login again.
';
+ $HTML = '
- You authenticated to the EGI Demo Identity Provider using a method that does not provide a GOCDB entitlement.
- Login is required with a gocdb entitlement.
- To gain access, you will need to login to the Proxy IdP using a scheme that provides a gocdb entitlement.
- Please logout or restart your browser and attempt to login again.
';
$HTML .= "
";
$HTML .= '
Logout';
$HTML .= "
";
echo ($HTML);
die();
}
- $this->principal = $_SERVER['epuid'];
+ $this->principal = $_SERVER['voPersonID'];
$this->userDetails = array('AuthenticationRealm' => array('EGI Proxy IdP'));
return;
}