From 16bcadbb58c9710707ad9541bf681ccf1f30b658 Mon Sep 17 00:00:00 2001 From: Sae126V Date: Tue, 6 Aug 2024 08:27:42 +0000 Subject: [PATCH 1/3] Update code to reflect the new EGI checkin error message - Co-authored-by: gregcorbett --- .../AuthTokens/ShibAuthToken.php | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/lib/Authentication/AuthTokens/ShibAuthToken.php b/lib/Authentication/AuthTokens/ShibAuthToken.php index 3361b5cc8..357470c9a 100644 --- a/lib/Authentication/AuthTokens/ShibAuthToken.php +++ b/lib/Authentication/AuthTokens/ShibAuthToken.php @@ -122,7 +122,7 @@ private function getAttributesInitToken(){ } if(empty($_SERVER['entitlement'])){ //die('Did not recieve the required entitlement attribute from the EGI Proxy IdP, please contact gocdb-admins'); - $HTML = ''; + $HTML = $this->getEntitlementErrorMessage(); $HTML .= "
"; $HTML .= 'Logout'; $HTML .= "
"; @@ -132,7 +132,7 @@ private function getAttributesInitToken(){ $entitlementValuesArray = explode(';', $_SERVER['entitlement']); if( !in_array('urn:mace:egi.eu:res:gocdb#aai.egi.eu', $entitlementValuesArray) ){ - $HTML = ''; + $HTML = $this->getEntitlementErrorMessage(); $HTML .= "
"; $HTML .= 'Logout'; $HTML .= "
"; @@ -204,4 +204,27 @@ public static function isStateless() { return true; } + private function getEntitlementErrorMessage() + { + $refedsResAndSchURL = "https://refeds.org/category/research-and-scholarship"; + $refedsSirtfiURL = "https://refeds.org/sirtfi"; + $resourceLink = "https://docs.egi.eu/internal/configuration-database/access"; + $sectionFragmentInfo = "/#using-institutional-account-via-egi-check-in"; + $documentationURL = $resourceLink . $sectionFragmentInfo; + + return ""; + } } From 6e3989c6ab070015e6b31cd3cfb5b73db9f88c36 Mon Sep 17 00:00:00 2001 From: gregcorbett Date: Mon, 16 Sep 2024 16:06:38 +0000 Subject: [PATCH 2/3] Version bump to 5.12.1-rc.1 --- htdocs/web_portal/static_html/goc5_logo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/web_portal/static_html/goc5_logo.html b/htdocs/web_portal/static_html/goc5_logo.html index 85a923578..2a6b46567 100644 --- a/htdocs/web_portal/static_html/goc5_logo.html +++ b/htdocs/web_portal/static_html/goc5_logo.html @@ -4,7 +4,7 @@

- GOCDB 5.12.0 + GOCDB 5.12.1-rc.1

From 2ff12543df94a4948c95347d4516f28b49e5b0c1 Mon Sep 17 00:00:00 2001 From: gregcorbett Date: Tue, 17 Sep 2024 09:14:25 +0000 Subject: [PATCH 3/3] Version bump to 5.12.1 --- htdocs/web_portal/static_html/goc5_logo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/web_portal/static_html/goc5_logo.html b/htdocs/web_portal/static_html/goc5_logo.html index 2a6b46567..a470d9c72 100644 --- a/htdocs/web_portal/static_html/goc5_logo.html +++ b/htdocs/web_portal/static_html/goc5_logo.html @@ -4,7 +4,7 @@

- GOCDB 5.12.1-rc.1 + GOCDB 5.12.1