Trouble integrating JIRA gadgets with Liferay Portal

I’m having a hard time getting JIRA gadgets to work on my Liferay Portal. The main problem is that JIRA won’t accept the public key I’m trying to use.

Here’s what I’ve done so far:

  1. Made a public key with Puttygen and put it in the Liferay folder.
  2. Added a JIRA gadget (Activity Stream) through the Liferay control panel.
  3. Set up OAuth in Liferay using RSAPrivate and the right consumer key.
  4. In JIRA, I created a new Generic Application and tried to configure the incoming authentication.
  5. I inserted the public key and callback information.

However, when I try to save the settings in JIRA, it returns an error saying the public key isn’t valid.

I’m really confused about what I’m doing wrong. Does anyone have any suggestions or a better way to generate the keys? Any help would be greatly appreciated!

Having dealt with JIRA-Liferay integration before, I can attest it’s not always straightforward. One crucial aspect often overlooked is the key format. Ensure your public key is in X.509 format, as JIRA specifically requires this. If you’re using Puttygen, export the key as OpenSSH and then convert it to X.509 using OpenSSL.

Another potential issue could be firewall settings. Check if your Liferay server can reach JIRA’s OAuth endpoints. Sometimes, network restrictions can silently block these connections, leading to cryptic errors.

Lastly, verify the OAuth consumer settings in both Liferay and JIRA match exactly. Any discrepancy in consumer key, secret, or callback URL can cause authentication failures. If problems persist, enabling debug logging for OAuth in both systems can provide valuable insights into where the process is breaking down.

I’ve faced similar issues integrating JIRA gadgets with Liferay Portal, and it can be frustrating. One thing that worked for me was generating the keys directly within Liferay instead of using Puttygen. Here’s what I did:

In Liferay’s control panel, navigate to Instance Settings > Authentication > OAuth. There, you can generate a new key pair. This ensures the keys are in the correct format that both Liferay and JIRA expect.

Also, double-check that you’re copying the entire public key, including the header and footer lines. Sometimes these get left out, causing JIRA to reject the key.

Lastly, make sure your JIRA version is compatible with the Liferay version you’re using. I once spent hours troubleshooting only to realize I needed to update JIRA for it to work properly with my Liferay instance.

If these steps don’t help, you might want to check Liferay’s logs for any OAuth-related errors. They often provide more detailed information about what’s going wrong during the authentication process.

hey ameliat, ive run into this before. make sure ur using the right key format - JIRA needs X.509. try converting ur key with OpenSSL. also, double check ur firewall isnt blocking JIRA’s OAuth. if nothing works, enable debug logging in both systems to see whats goin wrong. goodluck!