JAuthentication
Authentication class, provides an interface for the Joomla authentication system
Located in /libraries/joomla/user/authentication.php (line 19)
JObject (Subpackage Object)
![]()
JAuthentication (Subpackage User)
static array[JAuthenticationResponse]
authorise
(JAuthenticationResponse $response, [array $options = array()])
JAuthentication
$instance
(line 94)
array
$methods
= array() (line 88)
A multi dimensional array of [function][] = key for observers
array
$observers
= array() (line 72)
An array of Observer objects to notify
mixed
$state
= null (line 80)
The state of the observable object
Inherited Variables
Inherited from JObject
JObject::$_errors
Attach an observer object
- object $observer: An observer object to attach
Finds out if a set of login credentials are valid by asking all observing objects to run their respective authentication routines.
- array $credentials: Array holding the user credentials.
- array $options: Array holding user options.
Authorises that a particular user should be able to login
- JAuthenticationResponse $response: response including username of the user to authorise
- array $options: list of options
Detach an observer object
- object $observer: An observer object to detach.
Returns the global authentication object, only creating it if it doesn't already exist.
Constructor
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Inherited Methods
Inherited From JObject
JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::__toString()
STATUS_CANCEL
= 2
(line 35)
Status to indicate cancellation of authentication (unused)
STATUS_DENIED
= 16
(line 57)
This is the status code returned when the account has been denied (prevent login)
STATUS_EXPIRED
= 8
(line 50)
This is the status code returned when the account has expired (prevent login)
STATUS_FAILURE
= 4
(line 42)
This is the status code returned when the authentication failed (prevent login if no success)
STATUS_SUCCESS
= 1
(line 27)
This is the status code returned when the authentication is success (permit login)
STATUS_UNKNOWN
= 32
(line 64)
This is the status code returned when the account doesn't exist (not an error)

static