Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hi. i am calling Jira get issue api with bearer token but not able to get the result but when i used

Sudhir Choudhary October 30, 2023

Hi. i am calling Jira get issue api with bearer token but not able to get the result but when i used basic Auth it works fine could anyone please suggest how i can call this api using bearer Token.Rest_Api_issue.png

1 answer

0 votes
Adrien Low _ServiceRocket_
Community Champion
October 31, 2023

Hello @Sudhir Choudhary ,

If your token was generated using API tokens, according to Atlassian's documentation, it seems that API tokens are meant to be authenticated using basic auth and not bearer:-

If you are looking to implement OAuth 2.0, perhaps you can refer to the documentation below for further information:-

Hope this helps.

Regards.

Sudhir Choudhary October 31, 2023

Thanks @Adrien Low _ServiceRocket_  for your Answer, I already implemented Oauth 2.0 but still I am not able to get the correct response from Api as you can refer error screenshot in attachment. According to my requirement authentication should be done with Oauth 2.0 only not with API tokens.

ServiceRocket Managed Services October 31, 2023

Hello @Sudhir Choudhary ,

Do you have more information on how you have implemented OAuth 2.0?

If you have configured OAuth2.0 EXACTLY according to this documentation, then you should be calling the below URL instead:-

You can refer to the section below for more information on building the request URL:-

Regards.

Sudhir Choudhary October 31, 2023

Hi @Adrien Low _ServiceRocket_ , Yes i configured Oauth2.0 According to the document but didnot not use cloud id i will try again as you suggested.

 

Thanks

Suggest an answer

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

Atlassian Community Events