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?
Welcome to the Atlassian Community!
That would be a significant security risk, you really do need your application to be given an access token by each individual user.
I imagined as much but my colleagues wanted me to look into it. Thank you for your answer!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.