Skip to content

Commit

Permalink
finalize scopes for AuthCodeGrant
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobselp authored and Bobselp committed Apr 10, 2016
1 parent 03e8eb6 commit eb7526a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Grant/AuthCodeGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public function respondToAccessTokenRequest(

$scopes[] = $scope;
}

// Finalize the requested scopes
$scopes = $this->scopeRepository->finalizeScopes($scopes, $this->getIdentifier(), $client, $authCodePayload->user_id);
} catch (\LogicException $e) {
throw OAuthServerException::invalidRequest('code', 'Cannot decrypt the authorization code');
}
Expand Down

0 comments on commit eb7526a

Please sign in to comment.