REST authentication to JIRA which is behind Microsoft AD

I am using python's request library to interface with JIRA's API but when I try to do a GET request, I get a Microsoft error saying that I am not authenticated. I was able to do a work around by passing my session cookie in with the request but the issue is that the cookie expires every 4 hours. How can I authenticate with both Microsoft AD and JIRA to send my GET request?

🔴 No definitive solution yet