JIRA is blocking my user?

I'm accessing JIRA within python and the Python JIRA library using:

from jira import JIRA
options = {'server': 'https://myserver.atlassian.net'}
jira = JIRA(options=options, basic_auth=('username', 'password'))

and it work's great but after a couple times i'm doing so i'm starting to get an

Err: 401 Unauthorized

and my user password is not valid anymore.

Everytime that it happens I need to change my password to a new one and all of this scenario will occur again.

 

Is it because I'm using the basic_auth method to login to JIRA?

3 answers

1 accepted

0 votes
Accepted answer

Found a solution.

Based on the fact that basic auth is depreciated (https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/) 

I've created a token from this link

https://id.atlassian.com/manage/api-tokens

and then used my email as username and the token as password

1 vote
Gonchik Tsymzhitov Community Champion Apr 16, 2018

Hi! 

 

May I know can you login using these credential via web browser ?

If it is, hence your user is not blocked.

 

Cheers,

Gonchik Tsymzhitov

1. login to web browser version with working credentials

2. running my script with the same credentials couple of times

3. getting the 401 error message

4. trying to log in to web browser version with the same credentials - not working

5.  changing my password

6. go to step 1

Gonchik Tsymzhitov Community Champion Apr 16, 2018

Well, looks like you other scripts is running, hence it is blocking your account.

 

Could you repeat on another account? Or rename your account?

 

Cheers,

Gonchik Tsymzhitov

1. login to web browser version with working credentials

2. running my script with the same credentials couple of times

3. getting the 401 error message

4. trying to log in to web browser version with the same credentials - not working

5.  changing my password

6. go to step 1

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,097 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you