Spring 社交 Facebook 插件 - HTTP 状态 404 - /ssconnect/facebook
使用 spring-social 插件与 FaceBook 和 Twitter 的集成在本地正常工作,但是当我部署到生产环境时,两者都停止工作。 Tomcat7下的日志文件catalina.out没有发现错误。
我在 Facebook 中告知密码后发生错误,之后 Facebook 重定向到无效页面:
[我的域名这里]/ssconnect/facebook?code=AQC04UTDdGWFHR9AndhLf9hFzNE1pBgFlAzcYpmvFDwy6WkVDKuVxlcnbGi3TumBD2Jj3zVUVwaMOcDhfZ 0PzfI1saAdS1cB5swafkrrYwMaczggC8wFpk09kkJJKB-whNwImyr427yBncFWF5QaZ_OgeJ22k9lRSZXJ4Kwl0avhfuRUr8Pni6LC-Cj4g_ZKRmA
圣杯 1.3.7 弹簧社交核心 0.1.31 spring-social-facebook 0.1.31
我正在研究这个类: SpringSocialConnectController
有谁有任何线索吗?
Integration with FaceBook and Twitter using the spring-social plugin are working properly locally, but when I deploy to production, both stop to work. No errors found at the log file catalina.out under Tomcat7.
Error is happening after I inform my password in Facebook, after that, Facebook is redirecting to an invalid page:
[my domain here]/ssconnect/facebook?code=AQC04UTDdGWFHR9AndhLf9hFzNE1pBgFlAzcYpmvFDwy6WkVDKuVxlcnbGi3TumBD2Jj3zVUVwaMOcDhfZ0PzfI1saAdS1cB5swafkrrYwMaczggC8wFpk09kkJJKB-whNwImyr427yBncFWF5QaZ_OgeJ22k9lRSZXJ4Kwl0avhfuRUr8Pni6LC-Cj4g_ZKRmA
Grails 1.3.7
spring-social-core 0.1.31
spring-social-facebook 0.1.31
I'm looking into this class: SpringSocialConnectController
Does anyone have any clue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后我发现了问题。这根本不是插件的错误(也许可以改进异常处理),这是我这边的错误配置,请参阅:
Config.groovy 中的更改:
From:
grails.serverURL = "http://mydomain.com"
收件人:
grails.serverURL = "http://www.mydomain.com/[我的子域名]”
之后,工作了!
Finally I found the issue. It's not a bug with the plugin at all (maybe the exception handling could be improved on it), it was a bad configuration on my side, see:
Change in Config.groovy:
From:
grails.serverURL = "http://mydomain.com"
To:
grails.serverURL = "http://www.mydomain.com/[my subdomain]"
After that, worked!