Class Authentication
Generic authentication interface.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Authentication
Direct known subclasses
Core\Authentication\Driver\ldap
,
Core\Authentication\Driver\sspi
,
Core\Authentication\Driver\storage
Namespace: Core
Package: Core\Authentication
Since: 3.0
Requires: PHP 5.3
Version: 2.1
Located at Authentication.inc.php
Methods summary
protected
|
|
abstract protected
|
|
protected
boolean
|
#
_validatePassword( array $credentials, string $backendPassword )
Performs validation step for standardised authentication methods. |
public static
|
|
public
boolean
|
#
chain(
Adds or replaces a successive authentication layer. |
public
|
|
public
|
#
verify( array $credentials )
Verifies user credentials against the full chain of authentication drivers. |
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
string |
AllowEmptyPasswordParameter
Configuration parameter name to control whether empty password are
allowed. Defaults to |
#
'allow-empty-password'
|
string |
AllowEmptyUsernameParameter
Configuration parameter name to control whether empty user names are
allowed. Defaults to |
#
'allow-empty-username'
|
string |
FieldSelectorParameter
Configuration parameter name of PCRE describing additionally available
data fields. Defaults to |
#
'field-selector'
|
string |
PasswordEncryptionParameter
Configuration parameter name of encoder URI string for passwords.
Defaults to |
#
'password-encryption'
|
integer |
Success
Verification status code for valid user credentials. |
#
0x0
|
integer |
InvalidCredentials
Verification status code for invalid user credentials. Usually indicates that the password used is invalid. |
#
0x1
|
integer |
UnknownIdentifier
Verification status code for an unknown user identifier. E.g. the user does not exist in the given domain. |
#
0x2
|
integer |
TemporaryFailure
Verification status code for a temporary back-end failure. E.g. an authentication server timeout. |
#
0x3
|
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
array
|
$_v_parameters
Authentication configuration parameters. |
|
protected
integer
|
$_v_status
Status code of last user credentials verification. Drivers must set the status code after each performed verification. |
#
-1
|
protected
string
|
$_v_statusMessage
Optional credentials verification status message. Drivers should set this to a corresponding error message with further information on the cause on authentication failures to pass-through back-end error messages. May also contain further details on success. The value is initially set to |
|
protected
|
$_v_successor
Subsequent (chained) authentication layer instance, if any. |
Magic properties
public read-only
array
|
$parameters
Authentication configuration parameters. |
public read-only
integer
|
$status
Status code of last user credentials verification. Only defined after first completed credentials verification. For authentication chains, the status code of the last invoked instance in the chain is propagated to all predecessors. In case of an error, chain execution is stopped preliminarily and the status code will reflect the code of the first failed authentication instance. |
public read-only
string
|
$statusMessage
Status message of last user credentials verification. Defaults to |
public read-only
|
$successor
Subsequent (chained) authentication driver instance, if any. Defaults to |