Not able to get right cookies from Jira cloud

Hi all,

I am authenticating in Jira cloud through a program in R, using: /rest/auth/1/session


I am suceeding and having the following answer:

-> HEAD /rest/auth/1/session HTTP/1.1
-> Host:
-> Authorization: Basic YW1hbmRhdmFyZWxsYUBnbWFpbC5jb206QVRsYWIyNDU=
-> User-Agent: libcurl/7.51.0 r-curl/2.7 httr/1.2.1
-> Accept-Encoding: gzip, deflate
-> Cookie: atlassian.xsrf.token=9d557787-90ef-4098-a8b1-d06fa17285d4|8a336c865da44ff5a3c3630ccab14928e30dc3bf|lin
-> Accept: application/json
-> Content-Type: application/json
<- HTTP/1.1 200 OK
<- Server: Atlassian Proxy/0.1.130
<- Vary: Accept-Encoding
<- ATL-vTM-Backend-Time: 443
<- Cache-Control: no-cache, no-store, no-transform
<- Content-Type: application/json;charset=UTF-8
<- Content-Encoding: gzip
<- Strict-Transport-Security: max-age=315360000; includeSubDomains; preload
<- Date: Tue, 10 Oct 2017 23:14:00 GMT
<- X-AREQUESTID: 1394x85469x5
<- Transfer-Encoding: chunked
<- ATL-vTM-Time: 683
<- X-AUSERNAME: admin
<- X-Content-Type-Options: nosniff
<- Connection: Keep-Alive
<- X-Seraph-LoginReason: OK
<- ATL-vTM-Queue-Time: 0

 The only cookie returned to me is the atlassian.xsrf.token

The piece of code that I have, used to work in Jira server instances, where I used the JSESSIONID, but now, connecting to the cloud I think that JSESSIONID is not being returned anymore.
When I try to do another JQL for example, passing this cookie atlassian.xsrf.token, I am not be able to connect.

I saw in some other threads people mentioning the need of other cookies to connect to the cloud, but I am not receiving this other cookies in my authorization connection.
Could anyone help me?

Thank you! 


0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot