mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
fix: encoding state
This commit is contained in:
parent
da07ca5391
commit
f6385c716e
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