RESTfulAPI_TokenAuthenticator::authenticate
Checks if a request to the API is authenticated Gets API Token from HTTP Request and return Auth result
Signature
public function authenticate(HTTPRequest
$request )
Parameters
$request
— SilverStripe\Control\HTTPRequest- HTTP API request
Returns
- true|RESTfulAPI_Error
- True if token is valid OR RESTfulAPI_Error with details