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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,554,348
Community Members
 
Community Events
184
Community Groups

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

0 votes
mogavenasan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 07, 2021

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

mogavenasan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 08, 2021

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

hey @Abhishek Jaswal

I am facing this same issue. can you explain me ?

@Abhishek Jaswal @FAsmani  did you figure out how to call the authorization code api call of jira api using the postman?

melek khefifi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2023

@Abhishek Jaswal  hii my friend

i have the same problem when i want to test the authorization uri with postman he give me 200 OK request but he don't give me the authorization code !!! 

i really need help if there is anyone here can help me please !! 

Suggest an answer

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

Atlassian Community Events