Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira OAuth-403-Forbidden

Pavithra I'm New Here Jun 24, 2021

I want to integrate third party application into jira using OAuth 2.0(3LO).And I have retrieved Access token and cloud id.With the above values I tried to retrieve list of projects, but I am getting 403 Forbidden error and my code is 

URL url = new URL("{cloud-id}/rest/api/3/project");
HttpURLConnection http1 = (HttpURLConnection) url.openConnection();
http1.setRequestProperty("Authorization","Bearer <access_token>");
http1.setRequestProperty("Content-Type", "application/json");
http1.setRequestProperty("Accept", "application/json");

And I also I want to know,I have to use the same access token which was created by using this second point(Exchange authorization code for access token) of this link:

Could anyone help me to solve this?

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

269 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you