Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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.

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

383 views 23 8
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