Search code examples
phpgoogle-plushybridauth

HybridAuth Google+ sign-in error: redirect_uri_mismatch


Trying to implement hybridauth 2.4 on my website, All codes except config.php are out of the box, but I am having problems with Google+. I have tried everything and am slowly loosing it.

400 Error: redirect_uri_mismatch

Example Url: http://runettv.com/examples/social_hub/

My redirect uri's set in google console:

http://runettv.com/hybridauth
http://runettv.com/hybridauth/
http://runettv.com/hybridauth/examples
http://runettv.com/hybridauth/examples/ 

I also tried localhost:8080, localhost:8080/ etc.

My base_url is http://runettv.com/hybridauth

Not sure how to troubleshoot. Has anyone succeeded with this?


Solution

  • The configured redirect_uri and used redirect_uri have to match exactly. Add http://runettv.com/hybridauth?hauth.done=Google to your app configuration and you should be good.