I have written a plugin for JIRA Cloud using Atlassian Connect. Now I want to port it to Jira Server. I have used the JWT Authentication in the Connect plugin. I want to know what all options do I have to get it in Jira Server as well. I have no knowledge of P2 development. I am totally new to this space, so please try to answer in as simple terms as possible.
I came across this :- [Plugin generator from Atlassian Connect to JIRA Server](http://devpost.com/software/plugin-generator-from-atlassian-connect-to-jira-server-srdgvc) but was unable to use it, any help with this would also be very useful.
I came across this as well :- [Cloud and Server Atlassian Common Code](https://marketplace.atlassian.com/apps/1216366/cloud-and-server-atlassian-common-code/version-history). Again, couldn't understand this, what it was saying.
Also came across a couple of talks of Atlassian in YouTube as well
1. [Connect everywhere - Cloud and Server](https://www.atlassian.com/atlascamp/2015/archives/build-amazing-add-ons/connect-everywhere-cloud-and-server)
2. [Build a JIRA Server Add-on as a Microservice - You Can Do It! - AtlasCamp 2017](https://www.youtube.com/watch?v=CDzUaflgcRw) - (I was able to follow this a little, but for the authentication, this is showing to use environmental variables, but if I do that, the microservice would be used only by a single user, which won't help. So, how to make it generic?)
But, again, due to no experience/knowledge of developing plugins in Atlassian, I am unable to follow them completely. So, I just want someone to guide me how to use these resources I have found to achieve my task, basically give me some steps what all needs to be done.
Any assistance would be really helpful.