Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Authentication for teammates not using personal token

E_ S_ Hansen June 27, 2023 edited

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?

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 27, 2023

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.

E_ S_ Hansen June 27, 2023

I imagined as much but my colleagues wanted me to look into it. Thank you for your answer!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

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!
AUG Leaders

Upcoming Jira Events