This commit is contained in:
Alex Bilbie
2014-08-18 16:47:36 +01:00
parent b9e12a7fec
commit 7d8989a8cd
3 changed files with 14 additions and 4 deletions

View File

@@ -98,8 +98,11 @@ class ClientCredentialsGrant extends AbstractGrant
// Associate scopes with the session and access token
foreach ($scopes as $scope) {
$accessToken->associateScope($scope);
$session->associateScope($scope);
$session->associateScope($scope);
}
foreach ($session->getScopes() as $scope) {
$accessToken->associateScope($scope);
}
// Save everything