Google auth not working on development environment #4013
Replies: 2 comments
-
Hello everyone, I found a workaround that might be useful, but now I'm stuck in the "Social Network Login Failure" view. I have my own accounts app, but if you don't, you might consider creating an app called "google_provider." In this app, I created a
In However, it only works up to the callback URL. The callback URL receives the following parameters: And the view shows the following error:
I'm now out of options and unsure how to proceed from here. Any help or guidance would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
-
I suspect the issue is https vs http in the redirect_uri. The redirect_uri should match your server's protocol. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I followed the tutorial in the documentation, but when I try to log in with Google at (http://localhost:9000/accounts/google/login/), I encounter an Error 400: redirect_uri_mismatch. When I click on error details, the following information is displayed:
However, in my Google Console Credentials, the URL I have is: http://localhost:9000/accounts/google/login/callback/. As you can see, there are two differences: 1) https vs http and 2) the URL is missing the 9000 port.
If I enter the URL from the error message into the Google Console, it works until it redirects me to https://localhost/accounts/google/login/callback/, which does not exist in my local environment. My app is running on http://localhost:9000/ and not on https://localhost/.
I am not sure about other providers, but for Google, simply following the tutorial in the docs does not seem to work as expected. Could anyone provide guidance on how to address these two issues (https and port)?
Thank you for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions