diff --git a/lib/Authentication/AuthTokens/EOSCAAIAuthToken.php b/lib/Authentication/AuthTokens/EOSCAAIAuthToken.php new file mode 100644 index 000000000..820482cea --- /dev/null +++ b/lib/Authentication/AuthTokens/EOSCAAIAuthToken.php @@ -0,0 +1,33 @@ +acceptedIssuers = array("https://aai-demo.eosc-portal.eu/auth/realms/core"); + $this->authRealm = "EOSC Proxy IdP"; + $this->groupHeader = "OIDC_CLAIM_eduperson_entitlement"; + $this->groupSplitChar = ','; + $this->bannedGroups = array(); + $this->requiredGroups = array("urn:geant:eosc-portal.eu:res:gocdb.eosc-portal.eu"); + $this->helpString = 'Please seek assistance by opening a ticket against the ' . + '"EOSC AAI: Core Infrastructure Proxy" group in ' . + 'https://eosc-helpdesk.eosc-portal.eu/'; + + if (isset($_SERVER['OIDC_access_token'])) { + $this->setTokenFromSession(); + } + } +}