Skip to content

Commit 1723839

Browse files
author
Luca Degasperi
committed
Merge pull request #30 from BsWiM/lucadegasperi/master
Fixed issue when limit_scopes_to_grants was set to true the $result->id would get overridden by oauth_grants.id
2 parents d6292f2 + 60880f6 commit 1723839

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LucaDegasperi/OAuth2Server/Repositories/FluentScope.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class FluentScope implements ScopeInterface
1010
public function getScope($scope, $clientId = null, $grantType = null)
1111
{
1212
$query = DB::table('oauth_scopes')
13+
->select('oauth_scopes.id as id', 'oauth_scopes.scope as scope', 'oauth_scopes.name as name', 'oauth_scopes.description as description')
1314
->where('oauth_scopes.scope', $scope);
1415

1516
if (Config::get('lucadegasperi/oauth2-server-laravel::oauth2.limit_clients_to_scopes') === true and ! is_null($clientId)) {

0 commit comments

Comments
 (0)