1
0
Fork 0
mirror of synced 2024-09-30 09:18:14 +13:00

chore: Amazon Adapter changes

This commit is contained in:
Christy Jacob 2020-01-13 20:03:41 +05:30
parent 67bda8b9fa
commit 6bc1668877

View file

@ -49,13 +49,14 @@ class Amazon extends OAuth
foreach ($this->requiredScope as $item) { foreach ($this->requiredScope as $item) {
$this->addScope($item); $this->addScope($item);
} }
return 'https://www.amazon.com/ap/oa?' . return 'https://www.amazon.com/ap/oa?'.http_build_query([
'client_id='.urlencode($this->appID). 'response_type' => 'code',
'&redirect_uri='.urlencode($this->callback). 'client_id' => $this->appID,
'&response_type=code'. 'scope' => implode(' ', $this->getScopes()),
'&state='.urlencode(json_encode($this->state)). 'state' => json_encode($this->state),
'&scope=profile'; 'redirect_uri' => $this->callback
]);
} }
/** /**