Set the uid on the refresh token

This commit is contained in:
Alex Bilbie 2016-01-13 00:13:16 +00:00
parent eef5cf39d4
commit 0efa7cd7ea

View File

@ -47,8 +47,9 @@ class BearerTokenResponse extends AbstractResponseType
->setIssuedAt(time())
->setNotBefore(time())
->setExpiration($this->refreshToken->getExpiryDateTime()->getTimestamp())
->set('accessToken', $this->accessToken->getIdentifier())
->set('uid', $this->accessToken->getUserIdentifier())
->set('scopes', $this->accessToken->getScopes())
->set('accessToken', $this->accessToken->getIdentifier())
->sign(new Sha256(), new Key($this->pathToPrivateKey))
->getToken();