feat: modified Amazon Adapter to use the new custom scopes

This commit is contained in:
Christy Jacob 2020-01-13 20:02:03 +05:30
parent 907de3e95f
commit 67bda8b9fa

View file

@ -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).