How to use OAuth 2.0

https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/?_ga=2.41964133.1555367096.1554747885-75177244.1542289228

The link above might be of some use. It might be a little convoluted though.

The following Q/A might be of some use as well