When I am trying to generate Access token from the refresh token API on my local host using Auth 2.0 (client id and client secret) it always returns 401 Unauthorized
I used this documentation to implement the 2.0 Auth ( https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/ ) and then I used the question in the FQA part (
How do I get a new access token, if my access token expires or is revoked? )
and it fails.
Curl request :
curl --request POST \ --url 'https://auth.atlassian.com/oauth/token' \ --header 'Content-Type: application/json' \ --data '{ "grant_type": "refresh_token", "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET", "refresh_token": "YOUR_REFRESH_TOKEN" }'
Response :
{"error":"access_denied","error_description":"Unauthorized"}
Any idea how to get this issue solved please ?