You are here

public function RestfulAuthenticationInterface::authenticate in RESTful 7

Authenticate the request by trying to match a user.

Parameters

array $request: The request.

string $method: The HTTP method. Defaults to "get".

Return value

\stdClass|null The user object.

3 methods override RestfulAuthenticationInterface::authenticate()
RestfulAuthenticationBasic::authenticate in plugins/authentication/RestfulAuthenticationBasic.class.php
RestfulAuthenticationCookie::authenticate in plugins/authentication/RestfulAuthenticationCookie.class.php
Implements RestfulAuthenticationInterface::authenticate().
RestfulAuthenticationToken::authenticate in modules/restful_token_auth/plugins/authentication/RestfulAuthenticationToken.class.php
Authenticate the request by trying to match a user.

File

plugins/authentication/RestfulAuthenticationInterface.php, line 21
Contains RestfulAuthenticationInterface.

Class

RestfulAuthenticationInterface
@file Contains RestfulAuthenticationInterface.

Code

public function authenticate(array $request = array(), $method = \RestfulInterface::GET);