2015-03-30 167 views
1

試圖在我的網站上實施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_urlhttp://runettv.com/hybridauth

不知道如何轉oubleshoot。 有沒有人成功過?

回答

6

配置的redirect_uri和使用的redirect_uri必須完全匹配。將http://runettv.com/hybridauth?hauth.done=Google添加到您的應用配置中,您應該很好。

+1

我知道這會是一件愚蠢的事情。非常感謝,亞伯拉罕。 – 2015-03-31 00:13:16

+1

@PavelLebedeff幫助他人你應該接受這個答案。 – othermachines 2015-10-01 19:57:46

+1

這個答案仍然有效。爲了讓別人能像你一樣得到幫助,你應該簡單地接受它。 – 2016-03-21 06:05:58