A wrapper to use any valid callback for authentication
package | Gems |
---|---|
subpackage | Auth |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.5 |
__construct(callback $callback, string $identity, array $params = array()
)
Ideally the callback should return a \Zend_Auth_Result, when not it should return true or false and in that case this adapter will wrap the result in a \Zend_Auth_Result
callback
A valid callback
string
The identity to use
array
Array of parameters needed for the callback
authenticate() : \Zend_Auth_Result
\Zend_Auth_Result
$_callback : callback
$_identity : string
$_params : array