Fixed request attribute

This commit is contained in:
Alex Bilbie 2016-03-10 15:49:57 +00:00
parent 721a31534e
commit 5074ad9a6c

View File

@ -87,7 +87,8 @@ class BearerTokenResponse extends AbstractResponseType
} }
// Return the request with additional attributes // 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_client_id', $token->getClaim('aud'))
->withAttribute('oauth_user_id', $token->getClaim('sub')) ->withAttribute('oauth_user_id', $token->getClaim('sub'))
->withAttribute('oauth_scopes', $token->getClaim('scopes')); ->withAttribute('oauth_scopes', $token->getClaim('scopes'));