Connecting to JIRA api with 2fa enabled by organization

Lisanne June 13, 2022

Hi all,

I use self hosted jira and I'm currently trying to connect to the jira api using a python script having 2fa enabled by my organization. I'm not an admin of the project and after creating a personal access token I only got so far to get a response from the server telling me to put in the OTP to proceed. I was thinking weather I could possibly pass the OTP as part of the authorization header when making the request to the api but couldn't find any useful hints on how to do that. I have also been looking into OAuth tokens but from my understanding I'm unable to create one since I don't have the option to create an application link within jira (since I'm not an admin). Do you have any ideas on how I could manage to establish a connection to the api?

Any help would be appreciated!!

Cheers,

Liz

0 answers

Suggest an answer

Log in or Sign up to answer