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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Not able to make Authorization Code API call from postman

 

Hi , 

I am getting this below error when I am making the Api call for authorization code from the postman.

Can anyone guide me what I should do to resolve this

This is what I am getting when I am making Authorization code call from Postman, But when I did the same over the browser I was able to log in and then get back to the callback URL I had provided.

 

Capture2.PNGCapture3.PNG

 

1 answer

Hi @Abhishek Jaswal,

On the 1st screenshot, it looks like the error is "unauthorized_client" - there are not much details on the screenshot that is helpful on what is going on. 

Not really sure which kind of authentication you are trying to perform here. You can use API token on Jira Cloud; Basic auth for REST APIs.

Hi @mogavenasan 

I am doing OAUTH 2.0 3 legged authentication call

there as you can see 

first we have to make an authorization call

Which I am doing in inside the Postman but above screenshots were the errors that I am getting

Capture5.PNG

Hah, thanks for the information. The first step is to direct the user to the authorization URL, please share with us what is the request and it's response? You might want to remove any sensitive data on the request and response.

We should be looking for if the request is correctly configured as per the documentation and also what is the response you are getting.

Moreover, the authorization URL will need redirect_uri, technically an URL to your own app. How are you implementing this via the Postman?

I have resolved this issue thanks

for postman the redirect url is : https://oauth.pstmn.io/v1/callback

this same url you have to give under authorization in your jira app

auth uri is: https://auth.atlassian.com/authorize?audience=api.atlassian.com

Like mogavenasan likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Trello

📹 Favorite Trello templates

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. In this video, I'll share my favorite Trello templates. Templates mentioned in ...

99 views 5 7
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