Jira Cloud Oauth2 Connection

A few weeks ago, my app was connecting wonderfully to Jira Cloud using Oauth2. In the last week, without any code change it stopped working. Now I am getting the following error on the call to get the access token:
POST - https://auth.atlassian.com/oauth/token
Now returns 403:
{
“error”: “invalid_grant”,
“error_description”: “Invalid authorization code”
}
Does anyone know if something changed?

Hi @CarsonHolmes,

On our end there haven’t been any changes in this area since a few months.

From our documentation, there are a few reasons for this to happen:

  • The user’s Atlassian account password has been changed. Change the password back to the original password, or initiate the entire authorization flow from the beginning again.
  • Your app is using rotating refresh tokens and the exchange of refresh token failed because:
    • Your refresh token has expired. Users need to initiate the entire authorization flow from the beginning to get a new refresh token.
    • Your app is not replacing the previous refresh token with the new refresh token returned during access token request.

As a general suggestion, re-authorizing the app will address the problem.

Hope this helps,
Caterina