ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 More...
 

Function Documentation

◆ isValidSession()

isValidSession (   $ext_uid,
  $soap_pw,
  $new_user 
)

isValidSession

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

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}
$soap_pw
$ext_uid
$new_user

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

Referenced by ilSessionControl\checkExpiredSession().

+ Here is the caller graph for this function: