Authentication service handles registration of PAM handlers and calling of those handlers.
More...
Authentication service handles registration of PAM handlers and calling of those handlers.
- Since
- 4.3
Definition at line 14 of file AuthenticationService.php.
Elgg\AuthenticationService::__construct |
( |
protected HandlersService |
$handlerService | ) |
|
Elgg\AuthenticationService::authenticate |
( |
string |
$policy, |
|
|
array |
$authentication_params = [] |
|
) |
| |
Authenticate.
- Parameters
-
string | $policy | Authentication policy (eg. 'user' or 'api') |
array | $authentication_params | (optional) Credentials to use |
- Exceptions
-
- Returns
- bool
Definition at line 79 of file AuthenticationService.php.
Elgg\AuthenticationService::registerHandler |
( |
|
$handler, |
|
|
string |
$importance = 'sufficient' , |
|
|
string |
$policy = 'user' |
|
) |
| |
Register an authentication handler.
- Parameters
-
callable | $handler | A callable authentication handler |
string | $importance | The importance of the authentication handler ('sufficient' or 'required') |
string | $policy | The policy for which the authentication handler can be used (eg. 'user' or 'api') |
- Returns
- bool
Definition at line 42 of file AuthenticationService.php.
Elgg\AuthenticationService::unregisterHandler |
( |
|
$handler, |
|
|
string |
$policy = 'user' |
|
) |
| |
Unregister an authentication handler.
- Parameters
-
callable | $handler | The authentication handler to unregister |
string | $policy | The authentication handler policy |
- Returns
- void
Definition at line 64 of file AuthenticationService.php.
array Elgg\AuthenticationService::$handlers = [] |
|
protected |
The documentation for this class was generated from the following file: