Started implementing token exchange, tests

This commit is contained in:
Barnaby Walters
2021-06-10 18:23:21 +02:00
parent 9fc7299232
commit c3b4e5ec5b
3 changed files with 41 additions and 2 deletions

View File

@@ -560,7 +560,7 @@ EOT
$authEndpointJson = json_decode((string) $authEndpointResponse->getBody(), true);
$this->assertEquals('invalid_grant', $authEndpointJson['error']);
$tokenEndpointResponse = $s->handleAuthorizationEndpointRequest($req);
$tokenEndpointResponse = $s->handleTokenEndpointRequest($req);
$this->assertEquals(400, $tokenEndpointResponse->getStatusCode());
$tokenEndpointJson = json_decode((string) $tokenEndpointResponse->getBody(), true);
$this->assertEquals('invalid_grant', $tokenEndpointJson['error']);