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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user