Skip to content

Instantly share code, notes, and snippets.

@DavidOndrus
Created May 21, 2018 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidOndrus/6fddcd4855c7d0d817b879baaf6c2511 to your computer and use it in GitHub Desktop.
Save DavidOndrus/6fddcd4855c7d0d817b879baaf6c2511 to your computer and use it in GitHub Desktop.
old RefreshTokenGrant.php:respondToAccessTokenRequest
foreach ($scopes as $scope) {
if (in_array($scope->getIdentifier(), $oldRefreshToken['scopes']) === false) {
throw OAuthServerException::invalidScope($scope->getIdentifier());
}
}
...
$accessToken = $this->issueAccessToken($accessTokenTTL, $client, $oldRefreshToken['user_id'], $scopes);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment