ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilAuthContainerCalendarToken Class Reference

Calendar token based authentication More...

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

Public Member Functions

 __construct ()
 Constructor.
 fetchData ($username, $password)
 loginObserver ($a_username, $a_auth)
 Called from fetchData after successful login.
- Public Member Functions inherited from Auth_Container
 Auth_Container ()
 Constructor.
 fetchData ($username, $password, $isChallengeResponse=false)
 Fetch data from storage container.
 verifyPassword ($password1, $password2, $cryptType="md5")
 Crypt and verfiy the entered password.
 supportsChallengeResponse ()
 Returns true if the container supports Challenge Response password authentication.
 getCryptType ()
 Returns the crypt current crypt type of the container.
 listUsers ()
 List all users that are available from the storage container.
 getUser ($username)
 Returns a user assoc array.
 addUser ($username, $password, $additional=null)
 Add a new user to the storage container.
 removeUser ($username)
 Remove user from the storage container.
 changePassword ($username, $password)
 Change password for user in the storage container.
 log ($message, $level=AUTH_LOG_DEBUG)
 Log a message to the Auth log.
- Public Member Functions inherited from ilAuthContainerBase
 failedLoginObserver ($a_username, $a_auth)
 Called after failed login.
 checkAuthObserver ($a_username, $a_auth)
 Called after check auth requests.
 logoutObserver ($a_username, $a_auth)
 Called after logout.

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.
 $_auth_obj = null
 The Auth object this container is attached to.

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

ilAuthContainerCalendarToken::__construct ( )

Constructor.

Returns

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

Member Function Documentation

ilAuthContainerCalendarToken::fetchData (   $username,
  $password 
)

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

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

{
$GLOBALS['ilLog']->write('Fetch data');
include_once './Services/Calendar/classes/class.ilCalendarAuthenticationToken.php';
$this->current_user_id = ilCalendarAuthenticationToken::lookupUser($_GET['token']);
return $this->current_user_id > 0;
}

+ Here is the call graph for this function:

ilAuthContainerCalendarToken::loginObserver (   $a_username,
  $a_auth 
)

Called from fetchData after successful login.

Parameters
stringusername

Reimplemented from ilAuthContainerBase.

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

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

{
$GLOBALS['ilLog']->write('Called login observer');
$name = ilObjUser::_lookupName($this->current_user_id);
$a_auth->setAuth($name['login']);
return true;
}

+ Here is the call graph for this function:

Field Documentation

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: