auth : Add Shibboleth support

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2702 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-04-22 11:30:17 +00:00
parent 9f8d9ddc30
commit 7be2692c91
2 changed files with 103 additions and 0 deletions

View File

@@ -79,4 +79,12 @@ class authparams
}
}
/** Get the information from a shibboleth provider */
public function shibboleth ()
{
if (! isset ($_SERVER["Shib-Session-ID"]))
throw new Exception ("No Shibboleth information available", 401);
return array ("email"=>$_SERVER["mail"],
"password"=>"NONE IN SHIBBOLETH");
}
}