Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F392344
IAuthentication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
IAuthentication.php
View Options
<?php
/**
* Authentication method interface.
*
* Zed. The immensity of stars. The HyperShip. The people.
*
* (c) 2013, Dereckson, some rights reserved.
* Released under BSD license.
*
* @package Zed
* @subpackage Auth
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @copyright 2013 Sébastien Santoro aka Dereckson
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @link http://scherzo.dereckson.be/doc/zed
* @link http://zed.dereckson.be/
* @filesource
*/
/**
* Authentication method interface.
*/
interface
IAuthentication
{
/**
* Determines if an user has been authenticated.
*
* @return boolean true if the user has successfully been authenticated; otherwise, false.
*/
public
function
isValid
();
/**
* Gets the last authentication error
*
* @return string The last authentication error
*/
public
function
getError
();
/**
* Gets the user_id matching the authentication method
*
* @return int the authenticated user ID
*/
public
function
getUserID
();
/**
* Determines if the next authentication method could be tried if this one failed.
*
* This allow when a method has failed in such a way the user must be warned to warn it,
* returning false.
*
* @return bool true if authentication can go on to the next method; otherwise, false
*/
public
function
canTryNextAuthenticationMethod
();
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 20:27 (2 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23115
Default Alt Text
IAuthentication.php (1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment