mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-12-01 19:53:21 +05:30
Remove default scope from the Refresh Token Grant
This commit is contained in:
1 parent
093c7755fa
commit
cc6eb63dd8
1 file changed
+1
-1
@@ -44,7 +44,7 @@ class RefreshTokenGrant extends AbstractGrant
|
||||
// Validate request
|
||||
$client = $this->validateClient($request);
|
||||
$oldRefreshToken = $this->validateOldRefreshToken($request, $client->getIdentifier());
|
||||
$scopes = $this->validateScopes($this->getRequestParameter('scope', $request, $this->defaultScope));
|
||||
$scopes = $this->validateScopes($this->getRequestParameter('scope', $request));
|
||||
|
||||
// If no new scopes are requested then give the access token the original session scopes
|
||||
if (count($scopes) === 0) {
|
||||
|
||||
Reference in new issue
Block a user