Hello! I'm trying to set up OAuth 2.0 for a script that makes calls to the Jira API. I'm running a local Jira Server instance at http://localhost:2990/jira, and using the Authorization Code flow on this page.
I set up my application link like this:
And got the credentials.
Then I went into my browser and went to the following URL (encoding the redirect URI via an online tool, but I'm not sure if that step was necessary):
http://localhost:2990/jira/rest/oauth2/latest/authorize?client_id=65d4b12a43d6f9fe52a95ce5493e321e&redirect_uri=http%3A%2F%2Flocalhost%3A2990%2Fjira&response_type=code&scope=WRITE
If I understand correctly, this should take me to a screen where I can give permission for the client to use my Jira account. However, I get redirected to the following URL:
And see the following screen:
I also tried going through the same steps but using http://localhost:2990/jira/plugins/servlet/oauth2/consent as the redirect URI (both in the application link setup and in the query parameter for the URL I entered), but I got the same result.
This is my first time setting up OAuth, so I'm unfamiliar with how to implement it. Could someone help me understand what I'm doing wrong?
Thank you very much!