ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAuthContainerCalendarToken Class Reference

@classDescription Calendar token based authentication More...

+ Inheritance diagram for ilAuthContainerCalendarToken:
+ Collaboration diagram for ilAuthContainerCalendarToken:

Public Member Functions

 __construct ()
 Constructor. More...
 
 fetchData ($username, $password)
 
 loginObserver ($a_username, $a_auth)
 Called from fetchData after successful login. More...
 

Protected Attributes

 $current_user_id = 0
 

Detailed Description

@classDescription Calendar token based authentication

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 15 of file class.ilAuthContainerCalendarToken.php.

Constructor & Destructor Documentation

◆ __construct()

ilAuthContainerCalendarToken::__construct ( )

Constructor.

Returns

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

24 {
25 parent::__construct();
26 }

Member Function Documentation

◆ fetchData()

ilAuthContainerCalendarToken::fetchData (   $username,
  $password 
)

Definition at line 28 of file class.ilAuthContainerCalendarToken.php.

29 {
30 $GLOBALS['ilLog']->write('Fetch data');
31 include_once './Services/Calendar/classes/class.ilCalendarAuthenticationToken.php';
32 $this->current_user_id = ilCalendarAuthenticationToken::lookupUser($_GET['token']);
33
34 return $this->current_user_id > 0;
35 }
$_GET["client_id"]
static lookupUser($a_token)
Lookup user by hash.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.

References $_GET, $GLOBALS, and ilCalendarAuthenticationToken\lookupUser().

+ Here is the call graph for this function:

◆ loginObserver()

ilAuthContainerCalendarToken::loginObserver (   $a_username,
  $a_auth 
)

Called from fetchData after successful login.

Parameters
stringusername

Definition at line 42 of file class.ilAuthContainerCalendarToken.php.

43 {
44 $GLOBALS['ilLog']->write('Called login observer');
45
46 $name = ilObjUser::_lookupName($this->current_user_id);
47 $a_auth->setAuth($name['login']);
48 return true;
49 }
static _lookupName($a_user_id)
lookup user name
if($format !==null) $name
Definition: metadata.php:146

References $GLOBALS, $name, and ilObjUser\_lookupName().

+ Here is the call graph for this function:

Field Documentation

◆ $current_user_id

ilAuthContainerCalendarToken::$current_user_id = 0
protected

Definition at line 17 of file class.ilAuthContainerCalendarToken.php.


The documentation for this class was generated from the following file: