Method | Description | |
---|---|---|
authenticate ( SS_HTTPRequest $request ) : true | RESTfulAPI_Error | Checks if a request to the API is authenticated | |
getOwner ( SS_HTTPRequest $request ) : null | DataObject | Returns the DataObject related to the authenticated request |
public authenticate ( SS_HTTPRequest $request ) : true | RESTfulAPI_Error | ||
$request | SS_HTTPRequest | HTTP API request |
return | true | RESTfulAPI_Error | True if token is valid OR RESTfulAPI_Error with details |