mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Upgrade oauth2-server to 8.0.0 version, rewrite repositories and entities, start rewriting tests. Intermediate commit [skip ci]
This commit is contained in:
@@ -13,13 +13,13 @@ use yii\db\ActiveRecord;
|
||||
* @property string $type
|
||||
* @property string $name
|
||||
* @property string $description
|
||||
* @property string $redirect_uri
|
||||
* @property string|null $redirect_uri
|
||||
* @property string $website_url
|
||||
* @property string $minecraft_server_ip
|
||||
* @property integer $account_id
|
||||
* @property bool $is_trusted
|
||||
* @property bool $is_deleted
|
||||
* @property integer $created_at
|
||||
* @property int $created_at
|
||||
*
|
||||
* Behaviors:
|
||||
* @property Account|null $account
|
||||
|
@@ -69,7 +69,8 @@ class OauthSession extends ActiveRecord {
|
||||
}
|
||||
|
||||
public function removeRefreshToken(): void {
|
||||
/** @var \api\components\OAuth2\Storage\RefreshTokenStorage $refreshTokensStorage */
|
||||
/** @var \api\components\OAuth2\Repositories\RefreshTokenStorage $refreshTokensStorage */
|
||||
// TODO: rework
|
||||
$refreshTokensStorage = Yii::$app->oauth->getRefreshTokenStorage();
|
||||
$refreshTokensSet = $refreshTokensStorage->sessionHash($this->id);
|
||||
foreach ($refreshTokensSet->members() as $refreshTokenId) {
|
||||
|
Reference in New Issue
Block a user