Hello,
I am working in Python to write an app that will be used by me and my teammates. Currently I am using a personal token to authenticate myself to Jira while working on the script. The authentication is guaranteed using the following code:
from __future__ import annotations
from jira.client import JIRA
jira = JIRA(server="https://jira-pd.mycompany.biz", token_auth="{personal token}")
As for the finished product, however, I would like to not use a personal token as I would like for everyone in my team to be able to run the app seamlessly. Now to my question, is there any way to authenticate a user without a personal token? The company uses 2FA, so regular login with username and password did not seem to work.
If there is no way to circumvent using a personal token, would it be possible to generate a personal token directly (automatically) in Python? If it is possible, would it also be possible to only generate the token when no valid token is found?