Colymba\RESTfulAPI\Authenticators\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|RESTfulAPIError
- True if token is valid OR RESTfulAPIError with details