ILIAS  release_4-4 Revision
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...
 
- Public Member Functions inherited from Auth_Container
 Auth_Container ()
 Constructor. More...
 
 fetchData ($username, $password, $isChallengeResponse=false)
 Fetch data from storage container. More...
 
 verifyPassword ($password1, $password2, $cryptType="md5")
 Crypt and verfiy the entered password. More...
 
 supportsChallengeResponse ()
 Returns true if the container supports Challenge Response password authentication. More...
 
 getCryptType ()
 Returns the crypt current crypt type of the container. More...
 
 listUsers ()
 List all users that are available from the storage container. More...
 
 getUser ($username)
 Returns a user assoc array. More...
 
 addUser ($username, $password, $additional=null)
 Add a new user to the storage container. More...
 
 removeUser ($username)
 Remove user from the storage container. More...
 
 changePassword ($username, $password)
 Change password for user in the storage container. More...
 
 log ($message, $level=AUTH_LOG_DEBUG)
 Log a message to the Auth log. More...
 
- Public Member Functions inherited from ilAuthContainerBase
 loginObserver ($a_username, $a_auth)
 Called after successful login. More...
 
 failedLoginObserver ($a_username, $a_auth)
 Called after failed login. More...
 
 checkAuthObserver ($a_username, $a_auth)
 Called after check auth requests. More...
 
 logoutObserver ($a_username, $a_auth)
 Called after logout. More...
 
 supportsCaptchaVerification ()
 Returns whether or not the auth container supports the verification of captchas This should be true for those auth methods, which are available in the default login form. More...
 

Protected Attributes

 $current_user_id = 0
 

Additional Inherited Members

- Data Fields inherited from Auth_Container
 $activeUser = ""
 User that is currently selected from the storage container. More...
 
 $_auth_obj = null
 The Auth object this container is attached to. More...
 

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['ct_recipient']
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['ct_recipient']
+ 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: