chore: Amazon Adapter changes
This commit is contained in:
parent
67bda8b9fa
commit
6bc1668877
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue