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

 Methods

Create an auth adapter from a callback

__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

Parameters

$callback

callback

A valid callback

$identity

string

The identity to use

$params

array

Array of parameters needed for the callback

Perform the authenticate attempt

authenticate() : \Zend_Auth_Result

Returns

\Zend_Auth_Result

 Properties

 

The callback to use

$_callback : callback

Default

 

The identity to check

$_identity : string

Default

 

The optional parameters to pass to the callback

$_params : array

Default