留言板

Opensocial Oauth in Liferay 6.1-b4

thumbnail
lutz Bremen,修改在12 年前。

Opensocial Oauth in Liferay 6.1-b4

Expert 帖子: 291 加入日期: 11-10-20 最近的帖子
Hello,
i recently upgraded to Liferay 6.1 to test the Opensocial support. Now i wanted to make a Twitter Oauth request, but i am not able to do this.
I first tested if Opensocial works with some sample gadgets, but i get a error from every gadget.


My Idea now was to build a gadget by myself, but one of the first steps wanted me to add a provider to the "org.opensocial.client.OpenSocialProvider" Class, I got this from here.
So the Problem now is that i dont know how to add the support for Twitter, i guess i have to add it somewhere in the WEB-INF/classes/com/liferay/opensocial directory, but i have no clue where exactly.

This is important because i wanted to make many oauth requests from one gadget and if i have to add another Feature which requiers Oauth it would be easier to have a gadget which provides all Oauth Calls.

A Example how to add a Provider and how to make the Oauth call would be awesome, thanks in advance.