Get details app installation handshake from within the Atlassian Plugin (refapp) (Java)

Mourad Ahy February 23, 2019

We are currently using Atlassian Connect (Cloud) to authenticate our own system/API to search and create tickets on behalf of the user.

We are now in the process of creating a plugin (since not every client is using the cloud solution) which syncs the status of a Jira issue to our own system, but we still need the functionality mentioned above; searching tickets and creating tickets from our system/UI.

When using Atlassian connect (Cloud version), you get security details during the app installation handshake. These details contain the baseUrl, clientKey, key, pluginsVersion, productType, publicKey, sharedSecret, and userKey. I've attached a screenshot with the keys and their description. Please have a look at it.

How could these details be retrieved within the plugin?
The idea is to send these details to our own system when the plugin is installed. Actually, we have a custom admin page within Jira (assuming that the plugin is installed) and the moment the Jira user sets an API token (from our system) on that page, we would want to send the details mentioned above to our system, so we can make the calls we want.

Would love to hear from you guys!

Kind regards,

Mourad

image.png

0 answers

Suggest an answer

Log in or Sign up to answer