Forums

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

I am trying to access JIRA through POSTMAN. But i am getting the error "Sign in to your account"

Devi R April 4, 2024

I am trying to access JIRA through POSTMAN. But i am getting the error "Sign in to your account". 

I am able to login to my JIRA account through browser. 

In Postman, I am using Username and API Token for Basic Auth. 

But still getting the error 

<title>Sign in to your account</title> with status code as 200 Ok

1 answer

0 votes
Kishan Sharma
Community Champion
April 4, 2024

Hi @Devi R 

Welcome to the Atlassian Community!

Could you kindly provide the REST API endpoint that you are attempting to access?

Devi R April 15, 2024 edited

Hi, 

Thank you. Am trying to access the below mentioned endpoint. 

https://jira.{mydomain}/rest/agile/1.0/issue

 

Kishan Sharma
Community Champion
April 15, 2024

Thank you, have you selected "Bearer Token" as type in the Authorization tab in postman ?

Devi R April 15, 2024

Yes. Am using Bearer {My personal Access Token} under Authorization header tag

Kishan Sharma
Community Champion
April 15, 2024

Ok, then I don't see any issues here as it should work. What happens if you try curl ?


curl 'https://my.jira.com/rest/agile/1.0/issue/KISH-9?filter=allopenissues' --header 'Accept: application/json' --header 'Authorization: Bearer oiu78myotken1MjQ0OqAFKJFcUf'

Devi R April 15, 2024

I am trying from POSTMAN by giving the request url and header tokens. 

Yet, I am getting 

<title>Sign in to your account</title> with status as 200 ok. 
I am not sure where it is failing, but I am able to login JIRA through browser.
Kishan Sharma
Community Champion
April 16, 2024

Ok, I am unable to reproduce it. What header tokens are you passing ? I am only using 

Accept: application/json
Devi R April 16, 2024

Hi, 

I am using header tokens, 

Accept: application/json

Authorization: Bearer {Personal Access token}

Kishan Sharma
Community Champion
April 16, 2024

I hope you have set it up like this - Accept in Headers tab.

postman1.png

Authorization in Authorization tab.authorization-postman.png

Suggest an answer

Log in or Sign up to answer