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 URLI have that same issue, Could you solve this? I would appreciate if you could share here. thank you
Hi @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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.