Added missing state parameter in redirect response

This commit is contained in:
Alex Bilbie 2016-04-18 12:19:54 +01:00
parent fcec1f3442
commit 8f418cff08

View File

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