From bc314f7c52ddd468a3ce6809b1a00462626f3aac Mon Sep 17 00:00:00 2001 From: tompedals Date: Sat, 25 Oct 2014 22:43:56 +0100 Subject: [PATCH 1/2] Update ScopeStorage::get method signature to match the interface --- examples/relational/Storage/ScopeStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/relational/Storage/ScopeStorage.php b/examples/relational/Storage/ScopeStorage.php index 674fc6d9..9b50ae28 100644 --- a/examples/relational/Storage/ScopeStorage.php +++ b/examples/relational/Storage/ScopeStorage.php @@ -13,7 +13,7 @@ class ScopeStorage extends Adapter implements ScopeInterface /** * {@inheritdoc} */ - public function get($scope, $grantType = null) + public function get($scope, $grantType = null, $clientId = null) { $result = Capsule::table('oauth_scopes') ->where('id', $scope) From b60693c5d60bea801f47224ed5dcc407aaea9cc5 Mon Sep 17 00:00:00 2001 From: Leevi Graham Date: Fri, 7 Nov 2014 07:50:22 +1100 Subject: [PATCH 2/2] Associate the $client with $session. --- src/Grant/AuthCodeGrant.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Grant/AuthCodeGrant.php b/src/Grant/AuthCodeGrant.php index d2cb0cde..eef3d045 100644 --- a/src/Grant/AuthCodeGrant.php +++ b/src/Grant/AuthCodeGrant.php @@ -215,6 +215,8 @@ class AuthCodeGrant extends AbstractGrant } $session = $code->getSession(); + $session->associateClient($client); + $authCodeScopes = $code->getScopes(); // Generate the access token