PHP Class CakeDC\Users\Auth\ApiKeyAuthenticate

Inheritance: extends Cake\Auth\BaseAuthenticate
Afficher le fichier Open project: CakeDC/users Class Usage Examples

Méthodes publiques

Свойство Type Description
$types

Protected Properties

Свойство Type Description
$_defaultConfig

Méthodes publiques

Méthode Description
authenticate ( Cake\Network\Request $request, Response $response ) : mixed Authenticate callback Reads the API Key based on configuration and login the user
getUser ( Cake\Network\Request $request ) : mixed Stateless Authentication System http://book.cakephp.org/3.0/en/controllers/components/authentication.html#creating-stateless-authentication-systems
header ( Cake\Network\Request $request ) : string Get the api key from the header
querystring ( Cake\Network\Request $request ) : string Get the api key from the querystring

Method Details

authenticate() public méthode

Authenticate callback Reads the API Key based on configuration and login the user
public authenticate ( Cake\Network\Request $request, Response $response ) : mixed
$request Cake\Network\Request Cake request object.
$response Cake\Network\Response Cake response object.
Résultat mixed

getUser() public méthode

Config: $this->Auth->config('storage', 'Memory'); $this->Auth->config('unauthorizedRedirect', 'false'); $this->Auth->config('checkAuthIn', 'Controller.initialize'); $this->Auth->config('loginAction', false);
public getUser ( Cake\Network\Request $request ) : mixed
$request Cake\Network\Request Cake request object.
Résultat mixed

header() public méthode

Get the api key from the header
public header ( Cake\Network\Request $request ) : string
$request Cake\Network\Request request
Résultat string api key

querystring() public méthode

Get the api key from the querystring
public querystring ( Cake\Network\Request $request ) : string
$request Cake\Network\Request request
Résultat string api key

Property Details

$_defaultConfig protected_oe property

protected $_defaultConfig

$types public_oe property

public $types