diff --git a/lib/ConsentHelper.php b/lib/ConsentHelper.php index 2fe2d49..7eb92d4 100644 --- a/lib/ConsentHelper.php +++ b/lib/ConsentHelper.php @@ -49,8 +49,8 @@ public static function getJurisdiction($dstMetadata): string if (empty($jurisdiction) || array_key_exists($jurisdiction, self::EU_EAA)) { return ''; } - if ('INT' === $jurisdiction) { - return 'provided by an international organization.'; + if ('INT' === $jurisdiction || 'EMBL' === $jurisdiction) { + return $jurisdiction; } return 'in ' . $countryCodes[$jurisdiction]; @@ -115,10 +115,18 @@ public static function printJurisdictionWarning(string $parsedJurisdiction, $spP { if (!empty($parsedJurisdiction)) { echo '
In order to access the requested services, the Life Science Login needs to transfer your personal data to a country outside EU/EEA. We cannot guarantee that this country offers an adequately high level of personal data protection as EU/EEA countries.
' . PHP_EOL; + if ($parsedJurisdiction === 'INT' || $parsedJurisdiction === 'EMBL') { + echo 'In order to access the requested services, the Life Science Login needs to transfer your personal data to an international organization outside EU/EEA jurisdictions.
Please be aware that upon transfer your personal data will be protected by EMBL’s Internal Policy 68 on General Data Protection.' . PHP_EOL;
+ } else {
+ echo '
In order to access the requested services, the Life Science Login needs to transfer your personal data to a country outside EU/EEA. We cannot guarantee that this country offers an adequately high level of personal data protection as EU/EEA countries.
' . PHP_EOL; + } if (false !== $spPrivacyPolicy) { - echo 'Please, read the Privacy Policy of the service provider to learn more about its commitments to protect your data.' . PHP_EOL; + echo 'You are entering a service that is in the test environment of Life Science Login. The test environment is for service developers to test their relying service’s AAI integration before requesting to move them to the Life Science Login production environment.
' . PHP_EOL; + echo 'The test environment is not intended for common users. You are able to access the service because you have opted in as a test user. You need to refresh your registration every 30 days.
' . PHP_EOL; echo '