From 8f418cff083824cc51e679d3ff3d587ed4daec59 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 18 Apr 2016 12:19:54 +0100 Subject: [PATCH] Added missing state parameter in redirect response --- src/Grant/ImplicitGrant.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index 7ef8939e..9f754d71 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -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(), ], '#' )