ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 

Function Documentation

◆ isValidSession()

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

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

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

References $ext_uid, $new_user, and $soap_pw.