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: XXXXXX.atlassian.net
-> 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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

128 views 0 3
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