Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (string $pluginType='authentication', DispatcherInterface $dispatcher=null) | |
authenticate ($credentials, $options=array()) | |
authorise ($response, $options=array()) | |
Fonctions membres publiques statiques | |
static | getInstance (string $pluginType='authentication') |
Champs de données | |
const | STATUS_SUCCESS = 1 |
const | STATUS_CANCEL = 2 |
const | STATUS_FAILURE = 4 |
const | STATUS_EXPIRED = 8 |
const | STATUS_DENIED = 16 |
const | STATUS_UNKNOWN = 32 |
Attributs protégés | |
$pluginType | |
Attributs protégés statiques | |
static | $instance = [] |
Authentication class, provides an interface for the Joomla authentication system
__construct | ( | string | $pluginType = 'authentication' , |
DispatcherInterface | $dispatcher = null |
||
) |
Constructor
string | $pluginType | The plugin type to run authorisation and authentication on |
DispatcherInterface | $dispatcher | The event dispatcher we're going to use |
Références Text\_(), Log\add(), Factory\getContainer(), PluginHelper\importPlugin(), Joomla\Event\setDispatcher(), et Log\WARNING.
authenticate | ( | $credentials, | |
$options = array() |
|||
) |
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. |
Perform authentication
string[] | $strategies Array of strategies to try - empty to try all strategies. |
Références $options, Log\add(), Factory\getApplication(), PluginHelper\getPlugin(), Text\sprintf(), et Log\WARNING.
authorise | ( | $response, | |
$options = array() |
|||
) |
Authorises that a particular user should be able to login
AuthenticationResponse | $response | response including username of the user to authorise |
array | $options | list of options |
Références $options, $results, Factory\getApplication(), et PluginHelper\importPlugin().
|
static |
Returns the global authentication object, only creating it if it doesn't already exist.
string | $pluginType | The plugin type to run authorisation and authentication on |
Référencé par UpdateModel\captiveLogin(), et CMSApplication\login().
|
staticprotected |
|
protected |
const STATUS_CANCEL = 2 |
const STATUS_DENIED = 16 |
Référencé par CMSApplication\login(), et Token\onUserAuthenticate().
const STATUS_EXPIRED = 8 |
Référencé par CMSApplication\login().
const STATUS_FAILURE = 4 |
Référencé par Basic\onUserAuthenticate(), et Token\onUserAuthenticate().
const STATUS_SUCCESS = 1 |
const STATUS_UNKNOWN = 32 |