How to solve Error 400: redirect_uri_mismatch

Hi,

I’m currently using the social login extension, but the problem Error 400: redirect_uri_mismatch occurs for login with google selection. The Google team says that that has nothing to do with the OAuth verification process, so may I know how to solve the problem?

Below is the image detail for the error.

Hi,

Please copy the Redirect URI in HivePress/Settings/Users/Registration section and set it in the Google OAuth settings for the credentials you created, then it should be ok.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

I’ve tried everything I can and still can’t get the Google Social Login to work:

  • My OAuth App Verification is “Verified” in the Google API console
  • I have a Client ID set up in the console that has both a Client ID and Secret
  • I have added both the Client ID and Secret to the HivePress settings in the Integrations tab
  • I had added both of these as “Authorized redirect URIs” in Google’s API console:

https://mydomain.com
https://mydomain.com/account/authenticate/flowName=GeneralOAuthFlow

I have waited 24 hours (I read that sometimes changes in the API console take time so I thought just waiting would fix it)

But no matter what, when trying the flow, I still get the screen on Google’s end: " Access blocked: This app’s request is invalid" with the error of “Error 400: redirect_uri_mismatch”

It tells me to:

"If you’re the app developer, register the redirect URI in the Google Cloud Console.

Request details: redirect_uri=https://mydomain.com/account/authenticate/ flowName=GeneralOAuthFlow"

… which of course I already have.

Hi,

Please check the solution in this topic. Also, you can check this post for more details: How to Add Social Login to Your WordPress Directory Website

​I hope this is helpful to you