Ntb\RestAPI\AuthFactory::get_token
Returns the token from the request.
Silverstripe doesn't include Authorization header in its requests. We should check it, because we can use the mechanism in the tests.
Signature
public function get_token(SS_HTTPRequest
$request )
Parameters
$request
— object
Returns
- String
- the token