ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilSoapDummyAuthServer.php File Reference

Go to the source code of this file.

Data Structures

class  ilSoapDummyAuthServer

Namespaces

namespace  ilias
 redirection script todo: (a better solution should control the processing via a xml file)

Functions

 isValidSession ($ext_uid, $soap_pw, $new_user)
 isValidSession

Function Documentation

isValidSession (   $ext_uid,
  $soap_pw,
  $new_user 
)

isValidSession

Definition at line 39 of file class.ilSoapDummyAuthServer.php.

References $ext_uid, $new_user, $ret, and $soap_pw.

Referenced by ilSessionControl\checkExpiredSession().

{
$ret = array(
"valid" => false,
"firstname" => "",
"lastname" => "",
"email" => "");
// generate some dummy values
if ($new_user)
{
$ret["firstname"] = "first ".$ext_uid;
$ret["lastname"] = "last ".$ext_uid;
$ret["email"] = $ext_uid."@de.de";
}
// return valid authentication if user id equals soap password
{
$ret["valid"] = true;
}
else
{
$ret["valid"] = false;
}
return $ret;
}

+ Here is the caller graph for this function: