From 5074ad9a6ca7be14c1b3a3323c0c62c5ea5b3479 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 10 Mar 2016 15:49:57 +0000 Subject: [PATCH] Fixed request attribute --- src/ResponseTypes/BearerTokenResponse.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ResponseTypes/BearerTokenResponse.php b/src/ResponseTypes/BearerTokenResponse.php index fdbe73b0..643c1917 100644 --- a/src/ResponseTypes/BearerTokenResponse.php +++ b/src/ResponseTypes/BearerTokenResponse.php @@ -87,7 +87,8 @@ class BearerTokenResponse extends AbstractResponseType } // Return the request with additional attributes - return $request->withAttribute('oauth_access_token', $token->getClaim('jti')) + return $request + ->withAttribute('oauth_access_token_id', $token->getClaim('jti')) ->withAttribute('oauth_client_id', $token->getClaim('aud')) ->withAttribute('oauth_user_id', $token->getClaim('sub')) ->withAttribute('oauth_scopes', $token->getClaim('scopes'));