/** * Use the configured authentication adapters, and attempt to identify the user * by credentials contained in $request. * * @param CakeRequest $request The request that contains authentication data. * @param CakeResponse $response The response * @return array User record data, or false, if the user could not be identified. */ public function identify(CakeRequest $request, CakeResponse $response) { $result = $this->authenticateObject->authenticate($request, $response); if (!empty($result) && is_array($result)) { return $result; } return false; }