Liferay“当前 URL/robots.txt:无 VirtualHost”例外
大家好,社区,我最近几天集中精力将 opensocial 实施到 liferay 中,但由于我是 liferay 门户的新手,而且门户文档非常糟糕,所以我还有一些问题。
我如何为 Opensocial 配置 VirtualHost,哪个回调 URL 是正确的? (twitter 的示例会对我有很大帮助。)
我将 Liferay Tomcat 与 Eclipse 一起使用,当前版本为 6.1-b4。更具体地说,它是 Liferay 6.1 Beta,我编辑了以下部分:
- 从主干安装了 6.1-b4
- 安装了 opensocial-portlet-6.1.0.1-ce-b4-20111110.war
- 将 HTTP1.1 从 8080 更改为 80
- 更改了“shindig.signing”在shindig.properties中将.viewer-access-tokens-enabled=false”更改为“true”
- 更改了“shindig.signing.global-callback-url=http://*****/opensocial-portlet/gadgets/oauthcallback "
- 将“http://code.google.com/p/opensocialdeju/source/browse/Twitter/TwitterDemo.xml?r=11”添加到小工具编辑器
- 将 Twitter 中的 Consumer 和 Secret 添加到小工具“Oauth 首选项”
- 添加小工具到一个 页。
- 将“http://*****/opensocial-portlet/gadgets/oauthcallback”添加到回调 URL
I 的 Twitter 设置中可以单击“个性化此小工具”并获得 Twitter 弹出窗口。 该小工具现在显示:“一旦您批准了对您数据的访问,请单击我已批准访问。” 如果我批准访问,我会收到错误:“错误:403 错误,OAuth 错误:UNKNOWN_PROBLEM,客户端状态属于不同的人(状态所有者=G-10180,pageViewer=10196)====原始请求:GET /1/ account/verify_credentials.json 主机:api.twitter.com X-Shindig-AuthType:oauth X-Forwarded-For: ... X-shindig-dos: on ===="
所以最后我站在面对许多不同的 URL,并且不知道如何配置 VirtualHost ,以便获得 AccessToken。
这只是第一部分,然后我需要编辑 robots.txt 以允许 Twitter 等向我发送令牌,然后我想我就完成了:)。
Hello community i worked the last days intensiv on the implementation of opensocial into liferay, but as i am new to the liferay portal and the portal documentation is pretty bad, i have a few questions left.
How do i have to configure the VirtualHost for Opensocial, which Callback Url is right? (An example for twitter would help me a lot.)
I use Liferay Tomcat with Eclipse and currently Version 6.1-b4. Its the Liferay 6.1 Beta to be more specific i edited the following part:
- Installed 6.1-b4 from Trunk
- Installed opensocial-portlet-6.1.0.1-ce-b4-20111110.war
- Changed HTTP1.1 from 8080 to 80
- Changed "shindig.signing.viewer-access-tokens-enabled=false" to "true", in shindig.properties
- Changed "shindig.signing.global-callback-url=http://*****/opensocial-portlet/gadgets/oauthcallback"
- Added "http://code.google.com/p/opensocialdeju/source/browse/Twitter/TwitterDemo.xml?r=11" to gadgets editor
- Added Consumer and Secret from Twitter to the gadget "Oauth preferences"
- Added the gadget to a page.
- Added "http://*****/opensocial-portlet/gadgets/oauthcallback" to the Twitter settings for the Callback URL
I can click on the "Personalize this gadget" and get a Twitter popup.
The gadget shows now:"Please click I've approved access once you've approved access to your data. "
If i approve access i get the Error : "Error: 403 Error, OAuth error: UNKNOWN_PROBLEM, Client state belongs to a different person (state owner=G-10180, pageViewer=10196) ==== Original request: GET /1/account/verify_credentials.json Host: api.twitter.com X-Shindig-AuthType: oauth X-Forwarded-For: ... X-shindig-dos: on ===="
So in the end i stand in front of many different URLs and have no clue how to configure the VirtualHost , so that it is possible to get a AccessToken.
This was only the first part, then i need to edit the robots.txt to allow Twitter etc. to send me the Token, then i am done i guess :).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,Liferay 缺乏适当的文档,但社区资源(博客和维基)非常有用。
您看过这个吗
yes Liferay lacks proper documentation, but community resources (blogs & wikis) are quite useful.
Did you take a look at this