Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,316
Community Members
 
Community Events
168
Community Groups

oauth 2.0 Invalid authorization code error

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

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.

Suggest an answer

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

Atlassian Community Events