From b60693c5d60bea801f47224ed5dcc407aaea9cc5 Mon Sep 17 00:00:00 2001 From: Leevi Graham Date: Fri, 7 Nov 2014 07:50:22 +1100 Subject: [PATCH] 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