From 322caa77af8cf1558afd177cfcfd5238736a8ae5 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 17 Jan 2016 16:35:52 +0000 Subject: [PATCH] Fixes for RefreshTokenGrant --- src/Grant/RefreshTokenGrant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Grant/RefreshTokenGrant.php b/src/Grant/RefreshTokenGrant.php index 99b6b402..d8348d25 100644 --- a/src/Grant/RefreshTokenGrant.php +++ b/src/Grant/RefreshTokenGrant.php @@ -11,12 +11,12 @@ namespace League\OAuth2\Server\Grant; +use League\Event\Event; use League\OAuth2\Server\Exception\OAuthServerException; use League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface; use League\OAuth2\Server\ResponseTypes\ResponseTypeInterface; use League\OAuth2\Server\Utils\KeyCrypt; use Psr\Http\Message\ServerRequestInterface; -use Symfony\Component\EventDispatcher\Event; /** * Refresh token grant @@ -54,7 +54,7 @@ class RefreshTokenGrant extends AbstractGrant ) { $client = $this->validateClient($request); $oldRefreshToken = $this->validateOldRefreshToken($request, $client->getIdentifier()); - $scopes = $this->validateScopes($request, $scopeDelimiter, $client); + $scopes = $this->validateScopes($request, $client); // If no new scopes are requested then give the access token the original session scopes if (count($scopes) === 0) {