mattermost / mattermost-plugin-jira

JIRA plugin for Mattermost 🔌
https://mattermost.gitbook.io/plugin-jira/
Apache License 2.0
98 stars 127 forks source link

Jira Cloud OAuth installation through Atlassian Marketplace #984

Closed mickmister closed 2 months ago

mickmister commented 11 months ago

Installing an OAuth app in Jira requires the admin to enable developer mode, and the app is attached to their personal Jira account. The admin then needs to "share" the app, in order to have another Atlassian account connect their MM account to the same OAuth app.

We should instead support installing the plugin through the Atlassian Marketplace https://developer.atlassian.com/platform/marketplace/creating-a-marketplace-listing

mickmister commented 8 months ago

@raghavaggarwal2308 Can you or another developer please take a bit of time to determine what it will take to publish our integration to the Atlassian Marketplace? I believe this will involve hardcoding the OAuth redirect URI, which means it will only be supported on Mattermost Cloud servers. This is an expected limitation of the approach.

raghavaggarwal2308 commented 8 months ago

@mickmister Sure, we will look into this

mickmister commented 7 months ago

@raghavaggarwal2308 Curious if you've learned anything about this thus far?

raghavaggarwal2308 commented 7 months ago

@mickmister I explored quite a bit about this but could not find any proper article about publishing an oauth app to the Atlassian marketplace. Here are a few of them: https://community.developer.atlassian.com/t/do-i-really-need-to-list-my-oauth-2-0-3lo-app-on-marketplace-to-share-with-other-people/69937 https://developer.atlassian.com/platform/marketplace/knowledge-base/listing-a-third-party-integration-on-the-atlassian-marketplace/ https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/#distributing-your-oauth-2-0--3lo--apps

According to this article, I tried publishing an app. However, I could not find any information on Google about what must be filled in the App file location field. Looking at this https://marketplace.atlassian.com/apps/1232663/plerion-cloud-security-oauth-2-0-integration?hosting=cloud&tab=overview, we think there might be a possibility that we have to create a separate cloud app with the Oauth integration and publish that to the marketplace.

Please share if you have any thoughts on this or let us know if you want us to explore further.

mickmister commented 7 months ago

@raghavaggarwal2308 Do you know if all this information is for Jira Cloud specifically, or also for Jira Server?

we have to create a separate cloud app with the Oauth integration and publish that to the marketplace.

@raghavaggarwal2308 Yes this is my understanding as well. We'll need to have the OAuth redirect URIs pointing to our MM Cloud infrastructure, so MM Cloud is the only option for Jira Cloud marketplace apps. Pretty sure that's the case

raghavaggarwal2308 commented 7 months ago

@mickmister I will investigate more on it and let you know.

raghavaggarwal2308 commented 2 months ago

Conclusion: After exploration we found that deploying the oauth app to atlassian marketplace is not possible so the user have to enable the distribution in his oauth app only. Refer to /jira setup command for more context.