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?
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
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.