toString(); $this->sendPOST('/api/authserver/authentication/authenticate', [ 'username' => $asUsername, 'password' => $password, 'clientToken' => $clientToken, ]); $accessToken = $this->grabDataFromResponseByJsonPath('$.accessToken')[0]; return [$accessToken, $clientToken]; } }