With our Jira server instance we used to run a self written console application that uses the REST API over basic authentication to pull data out of Jira.
After migration to Jira cloud this doesn't work anymore because basic authentication is not longer supported.
After a few hours of research I found two other ways to authenticate. OAuth and Connected Apps. Both seem to need Callback Endpoints which a simple console application is not able to provide. And the OAuth examples seem all to show the use case of a third party web site that uses redirection to interactivly authorize a user.
Is there any other simple way, to authorize a console app to use the jira REST API without user interaction without the need to build an interactive website that a user must use to login or to build an web api with endpoints needed for a connected app?
The OAuth way is ok, but the process of getting the access token base on userid and passwort should be done by the console app. Not by an interactive website with redirect and callback url.
So basically, how can I get an access token for the REST API from a console app non interactively?