Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out 400: redirect_uri_mismatch #41

Open
RYNtje opened this issue Jun 4, 2021 · 2 comments
Open

out 400: redirect_uri_mismatch #41

RYNtje opened this issue Jun 4, 2021 · 2 comments

Comments

@RYNtje
Copy link

RYNtje commented Jun 4, 2021

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
Copy link

You need to use application type as "Desktop App" instead of "Web application" when creating Client ID in the Google API console.

@bogdanGR
Copy link

@pradeepdeveloper143 I created Desktop App but now I get this error: http://prntscr.com/ucDAMXPLvCne
How can I solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants