JIRA is blocking my user?

Rea Krakover April 16, 2018

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
Answer accepted
Rea Krakover April 17, 2018

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

Deleted user April 1, 2019

Hey @Rea Krakover  
My authentication key was working before and few days back i tried to enter different key and everything got messed up!!
Now even the original one , which was working before is not working.
None of the credentials are working.

Below are the details :
'Authorization': 'Basic key generated',        
'user-agent': 'node.js'

Also i have tried with

'Authorization': 'token generated  token',        
'user-agent': 'node.js'

Still i am resulted with below errors :
some times --> 401 unauthorized
sometimes -->403 forbidden 

Could you please help me to resolve this ?

1 vote
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 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

Rea Krakover April 16, 2018

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 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

0 votes
Rea Krakover April 16, 2018

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