Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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
Contributor
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
Product Admin
TAGS
atlassian, aafp, jira migration, marketing collaboration, end siloed work, streamline workflows, kerrie gottschalk, jira cloud admins, unified marketing, process visibility, team efficiency, cross-team collaboration

How Kerrie Gottschalk unified AAFP’s marketing team with Jira

At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.

Read the story
AUG Leaders

Atlassian Community Events