I am using python jira client to establish a connection to jira using basic auth.
from jira.client import JIRA
jira = JIRA(options={'server': 'https://server.atlassian.net'},
basic_auth=('[email protected]', 'pass'))
This code worked fine till yesterday.
Got recoverable error from GET https://server.atlassian.net/rest/api/2/serverInfo, will retry [1/3] in 17.5832343958s. Err: 401
My password and email is correct. I am able to login manually
Basic authentication with passwords and cookie-based authentication no longer work since effectively 14 April 2019 for Jira and Confluence cloud - see deprecation notice. Api token needs to be used in place of passwords for basic_auth
.
This snippet below should work:
from jira.client import JIRA
api_token = "***********************"
jira = JIRA(options={'server': 'https://server.atlassian.net'},
basic_auth=('[email protected]', api_token))
I've also raised an issue in pycontrib/jira
to reflect this: https://github.com/pycontribs/jira/issues/780.
Jira tickets to follow:
https://ecosystem.atlassian.net/browse/ACJIRA-1465
https://ecosystem.atlassian.net/browse/ACJIRA-1466
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With