ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  $ret["firstname"] = "first " . $ext_uid;
50  $ret["lastname"] = "last " . $ext_uid;
51  $ret["email"] = $ext_uid . "@de.de";
52  }
53 
54  // return valid authentication if user id equals soap password
55  if ($ext_uid == $soap_pw) {
56  $ret["valid"] = true;
57  } else {
58  $ret["valid"] = false;
59  }
60 
61  return $ret;
62 }
$ext_uid
$soap_pw
$new_user
$ret
Definition: parser.php:6
+ Here is the caller graph for this function: