From b2bd267edad8e5a1d60b9ab6d4606c92ef0f0188 Mon Sep 17 00:00:00 2001 From: valik Date: Wed, 31 Jul 2019 15:23:01 +0300 Subject: [PATCH] Removed change skin scope from refresh code --- api/tests/functional/_steps/OauthSteps.php | 2 +- api/tests/functional/oauth/RefreshTokenCest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tests/functional/_steps/OauthSteps.php b/api/tests/functional/_steps/OauthSteps.php index 5a053bc..da3b9a6 100644 --- a/api/tests/functional/_steps/OauthSteps.php +++ b/api/tests/functional/_steps/OauthSteps.php @@ -31,7 +31,7 @@ class OauthSteps extends FunctionalTester { } public function getRefreshToken(array $permissions = []) { - $authCode = $this->getAuthCode(array_merge([S::OFFLINE_ACCESS, S::CHANGE_SKIN], $permissions)); + $authCode = $this->getAuthCode(array_merge([S::OFFLINE_ACCESS], $permissions)); $response = $this->issueToken($authCode); return $response['refresh_token']; diff --git a/api/tests/functional/oauth/RefreshTokenCest.php b/api/tests/functional/oauth/RefreshTokenCest.php index 0b4c40b..6bc4051 100644 --- a/api/tests/functional/oauth/RefreshTokenCest.php +++ b/api/tests/functional/oauth/RefreshTokenCest.php @@ -46,7 +46,7 @@ class RefreshTokenCest { $refreshToken, 'ely', 'ZuM1vGchJz-9_UZ5HC3H3Z9Hg5PzdbkM', - [P::MINECRAFT_SERVER_SESSION, S::OFFLINE_ACCESS, S::CHANGE_SKIN] + [P::MINECRAFT_SERVER_SESSION, S::OFFLINE_ACCESS] )); $this->canSeeRefreshTokenSuccess($I); }