ILIAS  Release_3_10_x_branch Revision 61812
 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
 soap server

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.

{
$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;
}