Inject the session into the token type

This commit is contained in:
Alex Bilbie
2014-09-30 22:28:49 +01:00
parent a3f5d20592
commit 536ef3244d
5 changed files with 22 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ class ClientCredentialsGrant extends AbstractGrant
$accessToken->setSession($session);
$accessToken->save($this->server->getStorage('access_token'));
$this->server->getTokenType()->setSession($session);
$this->server->getTokenType()->setParam('access_token', $accessToken->getId());
$this->server->getTokenType()->setParam('expires_in', $this->getAccessTokenTTL());