You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have created a OAuth 2.0 app and I want this app to get the users project and ticket details.. but after I am done with the authorization url.. I am unable to get the access token..
OAuth 2.0 (3LO) apps (atlassian.com)
I am stuck at this step
curl --request POST \ --url 'https://auth.atlassian.com/oauth/token' \ --header 'Content-Type: application/Json' \ --data '{"grant_type": "authorization_code","client_id": "YOUR_CLIENT_ID","client_secret": "YOUR_CLIENT_SECRET","code": "YOUR_AUTHORIZATION_CODE","redirect_uri": "https://YOUR_APP_CALLBACK_URL"}'
everything is they have asked.. i have added my client id and client secret.. but the Api is giving me 400
i get this as the response
I did some research and some said that content-type needs to be changed.. i updated the content type to
offline_access
to the scope parameter of the authorization URL. Once you have the refresh token, exchange it for an access token by calling the token URLHi @Rohit Magar ,
Welcome to the Atlassian Community.
This is very much an Atlassian Developer question and I would highly recommend for you to join the Atlassian Developer Community here: https://community.developer.atlassian.com
This community is solely focused on helping developers build apps on top of the Atlassian products and thus has a greater number of people who might be able to help you compared to the user community.
Cheers,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.