How to fetch cloud.session.token cookie through REST API?

shanky November 23, 2019

Hi,

I am looking for an API to fetch cookie for login into Atlassian without entering username and password. 

Cookie based authentication was deprecated (https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-cookie-based-authentication/) But I have found this link: https://confluence.atlassian.com/cloudkb/how-to-make-use-of-a-cookie-to-get-logged-through-the-browser-945106839.html

which provides an alternative. Unfortunately, it is giving login failed on passing correct credentials. Kindly let me know if you solve this problem.

2 answers

0 votes
shanky November 24, 2019

Hi @Tiago Machado ,

Thank you for suggesting the OAuth Approach. I am using API tokens for REST API calls. I need cookie to bypass web login on website for some verification purpose.

Regards,

Shanky

0 votes
Tiago Machado
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 24, 2019

Hi @shanky

I think the best approach would be to have an OAuth autentication instead of using cookies.

It may sound a little frightening at first, but this page can help you with all the details and code samples.

Regards.

kurt March 12, 2020

nice bro

kurt March 12, 2020

good bro

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events