From a7f0d16596237cfde0dd3f1f1d1fdecba15d7215 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sat, 18 Jan 2020 09:18:47 +0530 Subject: [PATCH] chore: modified amazon adapter --- src/Auth/OAuth/Amazon.php | 6 +----- src/Auth/OAuth/Bitbucket.php | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Auth/OAuth/Amazon.php b/src/Auth/OAuth/Amazon.php index 2694e21fe8..fd7de98360 100644 --- a/src/Auth/OAuth/Amazon.php +++ b/src/Auth/OAuth/Amazon.php @@ -18,7 +18,7 @@ class Amazon extends OAuth /** * @var array */ - protected $requiredScope = [ + protected $scopes = [ "profile" ]; @@ -46,10 +46,6 @@ class Amazon extends OAuth */ public function getLoginURL(): string { - foreach ($this->requiredScope as $item) { - $this->addScope($item); - } - return 'https://www.amazon.com/ap/oa?'.http_build_query([ 'response_type' => 'code', 'client_id' => $this->appID, diff --git a/src/Auth/OAuth/Bitbucket.php b/src/Auth/OAuth/Bitbucket.php index 1b597263be..c0abb6c5d9 100644 --- a/src/Auth/OAuth/Bitbucket.php +++ b/src/Auth/OAuth/Bitbucket.php @@ -17,7 +17,7 @@ class Bitbucket extends OAuth /** * @var array */ - protected $scope = []; + protected $scopes = []; /** * @return string