From 67bda8b9fa508361ce0767b90a227a6b4d70e66d Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 13 Jan 2020 20:02:03 +0530 Subject: [PATCH] feat: modified Amazon Adapter to use the new custom scopes --- src/Auth/OAuth/Amazon.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Auth/OAuth/Amazon.php b/src/Auth/OAuth/Amazon.php index 3e187a5f07..c5dfecb728 100644 --- a/src/Auth/OAuth/Amazon.php +++ b/src/Auth/OAuth/Amazon.php @@ -46,6 +46,10 @@ class Amazon extends OAuth */ public function getLoginURL(): string { + foreach ($this->requiredScope as $item) { + $this->addScope($item); + } + return 'https://www.amazon.com/ap/oa?' . 'client_id='.urlencode($this->appID). '&redirect_uri='.urlencode($this->callback).