It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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 I'm New Here Mar 12, 2020

nice bro

kurt I'm New Here Mar 12, 2020

good bro

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

294 views 9 7
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you