HybridAuth Google+登录错误:redirect_uri_mismatch
问题描述:
试图在我的网站上实施hybridauth 2.4, 除了config.php之外的所有代码都是开箱即用的,但我在使用Google+时遇到问题。我已经尝试了一切,正在慢慢地放松下来。HybridAuth Google+登录错误:redirect_uri_mismatch
400 Error: redirect_uri_mismatch
URL示例:http://runettv.com/examples/social_hub/
我重定向的URI在谷歌控制台设置:
http://runettv.com/hybridauth
http://runettv.com/hybridauth/
http://runettv.com/hybridauth/examples
http://runettv.com/hybridauth/examples/
我也试过localhost:8080, localhost:8080/
等
我base_url
是http://runettv.com/hybridauth
不知道如何转oubleshoot。 有没有人成功过?
答
配置的redirect_uri和使用的redirect_uri必须完全匹配。将http://runettv.com/hybridauth?hauth.done=Google
添加到您的应用配置中,您应该很好。
我知道这会是一件愚蠢的事情。非常感谢,亚伯拉罕。 – 2015-03-31 00:13:16
@PavelLebedeff帮助他人你应该接受这个答案。 – othermachines 2015-10-01 19:57:46
这个答案仍然有效。为了让别人能像你一样得到帮助,你应该简单地接受它。 – 2016-03-21 06:05:58