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

redirect_uri_mismatch #6

Closed
CorentinDy opened this issue Dec 18, 2014 · 8 comments
Closed

redirect_uri_mismatch #6

CorentinDy opened this issue Dec 18, 2014 · 8 comments
Assignees
Labels

Comments

@CorentinDy
Copy link

Hi ,
i'm new with Google API's, i think i'd make some mistakes.
When i launch the app, Google send me an error : redirect_uri_mismatch with some text.

What am i doing wrong ?

Thanks

@IonicaBizau
Copy link
Owner

That's probably you configured an url X in your Google app settings, and the redirect URL came on url Y. Since X is not Y you get this error.

See this SO question too.

If the issue is still not clear, ask for more details.

@CorentinDy
Copy link
Author

Just mismatch with http and https ..

Thank's for quick answer !

@CorentinDy
Copy link
Author

I've got something else now .

When i accept oauth i've this message :

"The webpage at https://localhost:5000/oauth2callback?code=4/SJbL3QmeGOl36SiOYsJ6a7g9AUWMhB-HtUp_iUnGiyI.0gTEu-yccakVoiIBeO6P2m92zz-9lAI might be temporarily down or it may have moved permanently to a new web address.
Error code: ERR_CONNECTION_CLOSED"

If you have some ideas .

@IonicaBizau
Copy link
Owner

Do you see any error on the server side (in terminal)?

@CorentinDy
Copy link
Author

There is no error in terminal.

Open: http://localhost:5000
auth_uri https://accounts.google.com/o/oauth2/auth
client_secret XXXXXXXXXXXXX
client_id XXXXXXXXXXXXXXXXXX
redirect_uri https://localhost:5000/oauth2callback
scope https://www.googleapis.com/auth/youtube
response_type code
access_type offline

@IonicaBizau
Copy link
Owner

Hmm... I have just tested it and it works fine. I have the following credentials in Google console:

selection_002

And in credentials.json I have:

selection_003

Please double check if you copied the full client id (77....47t.apps.googleusercontent.com).

BTW, are you on a Windows platform?

@CorentinDy
Copy link
Author

Nop i'm on linux !
But it was because of httpS enable by default in google API so i modify the credentials.js with httpS for redirect_uri but in fact i had to modify it in the google API ! ...

So it work like a charm 👍

@IonicaBizau
Copy link
Owner

Huh. I worried there is a bug in a lower dependency. 😄

@IonicaBizau IonicaBizau self-assigned this Mar 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants