ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
ilAuthContainerCalendarToken Class Reference

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

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.

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

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"]
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static lookupUser($a_token)
Lookup user by hash.
+ 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.

References $GLOBALS, and ilObjUser\_lookupName().

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
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
+ 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: