It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JIRA is blocking my user?

Rea Krakover Apr 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 Apr 17, 2018 • edited

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

Prateek Neelgund I'm New Here Apr 01, 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 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

Rea Krakover Apr 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 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

0 votes
Rea Krakover Apr 16, 2018 • edited

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

12,589 views 63 59
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you