ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilSoapDummyAuthServer.php File Reference

Go to the source code of this file.

Data Structures

class  ilSoapDummyAuthServer
 

Namespaces

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

Functions

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

Function Documentation

◆ isValidSession()

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().

40 {
41  $ret = array(
42  "valid" => false,
43  "firstname" => "",
44  "lastname" => "",
45  "email" => "");
46 
47  // generate some dummy values
48  if ($new_user)
49  {
50  $ret["firstname"] = "first ".$ext_uid;
51  $ret["lastname"] = "last ".$ext_uid;
52  $ret["email"] = $ext_uid."@de.de";
53  }
54 
55  // return valid authentication if user id equals soap password
56  if ($ext_uid == $soap_pw)
57  {
58  $ret["valid"] = true;
59  }
60  else
61  {
62  $ret["valid"] = false;
63  }
64 
65  return $ret;
66 }
$ext_uid
$soap_pw
$new_user
+ Here is the caller graph for this function: