protected function ConsumerConfigTest::getTokenInfo in farmOS 2.x
Return the response from oauth/debug.
Parameters
string $access_token: The access_token to use for authentication.
Return value
mixed The JSON parsed response.
3 calls to ConsumerConfigTest::getTokenInfo()
- ConsumerConfigTest::testGrantUserAccess in modules/
core/ api/ tests/ src/ Functional/ ConsumerConfigTest.php - Test consumer.grant_user_access config.
- ConsumerConfigTest::testLimitRequestedAccess in modules/
core/ api/ tests/ src/ Functional/ ConsumerConfigTest.php - Test consumer.limit_requested_access.
- ConsumerConfigTest::testLimitUserAccess in modules/
core/ api/ tests/ src/ Functional/ ConsumerConfigTest.php - Test consumer.limit_user_access.
File
- modules/
core/ api/ tests/ src/ Functional/ ConsumerConfigTest.php, line 214
Class
- ConsumerConfigTest
- Tests using the consumer.client_id field.
Namespace
Drupal\Tests\farm_api\FunctionalCode
protected function getTokenInfo($access_token) {
$response = $this
->get($this->tokenDebugUrl, [
'query' => [
'_format' => 'json',
],
'headers' => [
'Authorization' => 'Bearer ' . $access_token,
],
]);
return Json::decode((string) $response
->getBody());
}