From e41094ef29d53b1b09d59513d94cb525eaec43e6 Mon Sep 17 00:00:00 2001 From: Salem Moqa Date: Tue, 17 Dec 2024 19:48:46 +0300 Subject: [PATCH] Fix typo: change redirectUri to redirectUrl (#27) Example: https://accounts.salla.sa/oauth2/auth?scope=offline_access&state=9a0e6714a39a8d39597a1c65220614f2&response_type=code&approval_prompt=auto&redirect_url=***&client_id=** Error: The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. The 'redirect_url' parameter does not match any of the OAuth 2.0 Client's pre-registered redirect urls. redirect_url is not a part of Salla's oauth2 parameters. The correct parameter is "redirect_uri". Other option: If "redirect_url" is the official parameter, as stated in the docs and other auth tutorials, it could be a bug in the auth endpoint. https://accounts.salla.sa/oauth2/auth --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 51b123c..2364934 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ use Salla\OAuth2\Client\Provider\Salla; $provider = new Salla([ 'clientId' => '{client-id}', // The client ID assigned to you by Salla 'clientSecret' => '{client-secret}', // The client password assigned to you by Salla - 'redirectUri' => 'https://yourservice.com/callback_url', // the url for current page in your service + 'redirectUrl' => 'https://yourservice.com/callback_url', // the url for current page in your service ]); /**