Add tests for the legacy tokens

This commit is contained in:
ErickSkrauch
2019-09-23 00:53:13 +03:00
parent cf62c686b1
commit a148da2ecf
17 changed files with 222 additions and 52 deletions

View File

@ -14,7 +14,7 @@ use Yii;
class RefreshTokenGrant extends BaseRefreshTokenGrant {
/**
* Previously, refresh tokens was stored in Redis.
* Previously, refresh tokens were stored in Redis.
* If received refresh token is matches the legacy token template,
* restore the information from the legacy storage.
*

View File

@ -32,7 +32,7 @@ class LegacyOAuth2Identity implements IdentityInterface {
*/
private $session = false;
private function __construct(string $accessToken, string $sessionId, array $scopes) {
private function __construct(string $accessToken, int $sessionId, array $scopes) {
$this->accessToken = $accessToken;
$this->sessionId = $sessionId;
$this->scopes = $scopes;