oauth 2.0 Invalid authorization code error

Jisoo Shin July 20, 2021

Hello, I have a problem.

when i try to exchange authorization code for access token, follow guide, https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/

curl --request POST --url "https://auth.atlassian.com/oauth/token" --data "{"grant_type": "authorization_code","client_id": "xx","client_secret": "xx","code": "xx","redirect_uri": "https://curvcihp.atlassian.net"}"

 response error code..

{"error":"access_denied","error_description":"Unauthorized"}

what should i do to solve this problem..

 

2 answers

0 votes
James Richards
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 12, 2022

Hi @Jisoo Shin

The redirect_uri needs to redirect back to your OAuth2 application to complete the Authorisation flow. Not back to the cloud site.

James.

0 votes
Hiroshi Nishio August 31, 2022

@Jisoo Shin Any update?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events