mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Merge pull request #9253 from appwrite/fix-amazon-oauth
fix: amazon oauth
This commit is contained in:
commit
85539dfb29
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ class Amazon extends OAuth2
|
|||
*/
|
||||
public function parseState(string $state)
|
||||
{
|
||||
return \json_decode(\html_entity_decode($state), true);
|
||||
return \json_decode(\urldecode(\html_entity_decode($state)), true);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ class Amazon extends OAuth2
|
|||
'response_type' => 'code',
|
||||
'client_id' => $this->appID,
|
||||
'scope' => \implode(' ', $this->getScopes()),
|
||||
'state' => \json_encode($this->state),
|
||||
'state' => \urlencode(\json_encode($this->state)),
|
||||
'redirect_uri' => $this->callback
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue