Change case for implict grant token_type

This commit is contained in:
Dave Marshall 2017-03-27 12:11:25 +01:00
parent bf7084a147
commit 83228bdcd5

View File

@ -200,7 +200,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant
$finalRedirectUri, $finalRedirectUri,
[ [
'access_token' => (string) $accessToken->convertToJWT($this->privateKey), 'access_token' => (string) $accessToken->convertToJWT($this->privateKey),
'token_type' => 'bearer', 'token_type' => 'Bearer',
'expires_in' => $accessToken->getExpiryDateTime()->getTimestamp() - (new \DateTime())->getTimestamp(), 'expires_in' => $accessToken->getExpiryDateTime()->getTimestamp() - (new \DateTime())->getTimestamp(),
'state' => $authorizationRequest->getState(), 'state' => $authorizationRequest->getState(),
], ],