ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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, $soap_pw, and array.

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
Create styles array
The data for the language used.
$new_user
$ret
Definition: parser.php:6
+ Here is the caller graph for this function: