ILIAS  release_8 Revision v8.24
class.ilSoapDummyAuthServer.php File Reference

Go to the source code of this file.

Data Structures

class  ilSoapDummyAuthServer
 

Functions

 isValidSession (string $ext_uid, string $soap_pw, bool $new_user)
 SOAP dummy authentication server. More...
 

Function Documentation

◆ isValidSession()

isValidSession ( string  $ext_uid,
string  $soap_pw,
bool  $new_user 
)

SOAP dummy authentication server.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e

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

27 : array
28{
29 $ret = [
30 "firstname" => "",
31 "lastname" => "",
32 "email" => ""
33 ];
34
35 // generate some dummy values
36 if ($new_user) {
37 $ret["firstname"] = "first " . $ext_uid;
38 $ret["lastname"] = "last " . $ext_uid;
39 $ret["email"] = $ext_uid . "@de.de";
40 }
41
42 // return valid authentication if user id equals soap password
43 if ($ext_uid === $soap_pw) {
44 $ret["valid"] = true;
45 } else {
46 $ret["valid"] = false;
47 }
48
49 return $ret;
50}
$soap_pw
$ext_uid
$new_user

References $ext_uid, $new_user, and $soap_pw.