out 400: redirect_uri_mismatch
RYNtje opened this issue · 2 comments
RYNtje commented
I started to use this repository but struggeling with the google authentication.
I want use add and modify contacts from my php website.
Therefore I added a credential (type web application) as mentioned in the setup
When is do the setup "php vendor/rapidwebltd/php-google-oauth-2-handler/src/setup.php" i enter the credentials given by google and add the required scopes. The I receive from the set up a long webadres. I copy it and paste in my browser.
The I receive an error:
out 400: redirect_uri_mismatch
The redirect URI in the request, urn:ietf:wg:oauth:2.0:oob,
can only be used by a Client ID for native application.
It is not allowed for the WEB client type.
This error is mentioned earlier in this forum, but the answer was to use type "other".
But this option is not available anymore.
Does anyone know how to exactly setup the google credentials?
pradeepdeveloper143 commented
You need to use application type as "Desktop App" instead of "Web application" when creating Client ID in the Google API console.
bogdanGR commented
@pradeepdeveloper143 I created Desktop App but now I get this error: http://prntscr.com/ucDAMXPLvCne
How can I solve this?