ILIAS  release_7 Revision v7.30-3-g800a261c036
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 $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}
$soap_pw
$ext_uid
$new_user
$ret
Definition: parser.php:6

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

Referenced by ilSessionControl\checkExpiredSession().

+ Here is the caller graph for this function: