Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,512
Community Members
 
Community Events
165
Community Groups

Jira REST API via cookie based auth doesn't return correct cookie

Hello,

I'm building a script to connect to the Jira REST API via cookie based auth.

When I use on my script:

session = requests.Session()
a_session.get('https://somejiraserver.com/')
session_cookies = a_session.cookies
cookies_dictionary = session_cookies.get_dict()

jira = Jira(
    url='https://somejiraserver.com/',
    cookies = cookies_dictionary )

The cookies that I get are different from the cookies that I inspect directly on the browser.

If I use the cookies that I get from the request, it does not work, but if I use the cookies that I get when I inspect the browser it works.

Do you have any idea what is wrong?

Thanks in advance.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.4
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,976 views 37 49
Read article

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