aspose file tools*
The moose likes Portals and Portlets and the fly likes Jira + Liferay Integration through OAuth Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Jira + Liferay Integration through OAuth" Watch "Jira + Liferay Integration through OAuth" New topic
Author

Jira + Liferay Integration through OAuth

Kicha Paddu
Greenhorn

Joined: Feb 28, 2012
Posts: 3
Has anyone integrated Jira and Liferay using OAuth?

I created public/private key using keytool and exported the certificate into rsaSigningKey.pem. Placed this file in liferaydatafolder/opensocial/.

Configured Incoming authentication in Application Links of Jira with
Consumer key - www.myliferay.com
Consumer Name - Liferay
Public key - public key text from rsaSigningKey.pem file.

Public key greyed out and saved the configuration.

Added the OpenSocial gadget onto the Liferay page. Gave the url of activityStream of Jira and in Manage OAuth section selected RSA_private and gave the consumer key as www.myliferay.com. Saved the configuration.

My activity stream in Liferay shows empty. When I checked the liferay console, it shows an error of jodd.bean.BeanException: Simple property not found: oAuthConsumerId Invalid property: 'OAuthConsumerImpl#oAuthconsumerId (actual: 'OAuthConsumerImpl#oAuthConsumerId', forced=false)

Where am I going wrong? should the consumer key be the CN of public/private key creation?

Regards,
Kicha
Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
Hi Kicha,

This is well-known issue. See this ticket.

http://issues.liferay.com/browse/LPS-10005

Thanks

Jonas Yuan

-----------------
Blogs profile: http://www.liferay.com/web/jonas.yuan/profile
Author profile: http://www.packtpub.com/authors/profiles/jonas-x-yuan


Books: Liferay Portal 6.1 Systems Development
Kicha Paddu
Greenhorn

Joined: Feb 28, 2012
Posts: 3
Thanks Jonas,

But Dennis Ju in this post came out with a fix [http://stackoverflow.com/questions/8491844/jira-liferay-integration] and mentioned that by Liferay 6.1.0 the fix would be incorporated. Since I am using Liferay 6.1.0, I thought the issue is fixed.

Also I see under your blog (http://www.liferay.com/web/jonas.yuan/profile) there is portlet which pulls issue statistics from Jira(Image Attached). This seems to be Jira Gadget. Is that Liferay of different version?

Is there any other alternative? or should I have to wait for the next version? Does this affects only Community Edition?

Regards
Kicha



[Thumbnail for Jonas profile.JPG]

Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
Hi Kicha,

It is true that Auth 2.0 integration is almost ready. Just a few bugs are opening.

By the way, JIRA and SVN integration are available in the plugin: social-coding-portlet. You can use the same plugin for both EE and CE version.

The website www.liferay.com eats its own dog's food - the same plugin is in use.

Thanks

Jonas Yuan
Kicha Paddu
Greenhorn

Joined: Feb 28, 2012
Posts: 3
Thanks Jonas. I will wait for the next release.

Currently, I gave browse permission to anyone on the Jira projects. So skipping OAuth I am able to display the Jira gadgets on the Liferay page.

Regards,
Kicha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jira + Liferay Integration through OAuth