mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Подменены все ключевые сущности на наши
This commit is contained in:
@ -8,7 +8,6 @@ use common\models\Account;
|
||||
use common\models\OauthClient;
|
||||
use common\models\OauthScope;
|
||||
use League\OAuth2\Server\Exception\OAuthException;
|
||||
use League\OAuth2\Server\Grant\RefreshTokenGrant;
|
||||
use Yii;
|
||||
use yii\filters\AccessControl;
|
||||
use yii\helpers\ArrayHelper;
|
||||
@ -195,8 +194,8 @@ class OauthController extends Controller {
|
||||
return;
|
||||
}
|
||||
|
||||
$grant = new RefreshTokenGrant();
|
||||
$grant->setRefreshTokenRotation(false);
|
||||
$grantClass = Yii::$app->oauth->grantMap['refresh_token'];
|
||||
$grant = new $grantClass;
|
||||
|
||||
$this->getServer()->addGrantType($grant);
|
||||
}
|
||||
|
Reference in New Issue
Block a user