Hello!
jira-python
In my python scripts using JIRA API, kerberos authentication suddenly stopped working(authentication worked for months and then suddenly stopped working in the evening).
There was no update of the python libraries. Error occurs on different versions of the python jira library, on different hosts and for different jira(and kerberos) users.
Curl can log into JIRA using kerberos!!!
Im using standard library connection:
JIRA(server=jira_server, kerberos=True)
ERROR:
File "...\func.py", line 11, in jira_connect
jira_con = JIRA(server=jira_server, kerberos=True)
File "...\venv38\lib\site-packages\jira\client.py", line 506, in __init__
si = self.server_info()
File "...\venv38\lib\site-packages\jira\client.py", line 2551, in server_info
j = self._get_json("serverInfo")
File "...\venv38\lib\site-packages\jira\client.py", line 3139, in _get_json
r = self._session.get(url, params=params)
File "...\venv38\lib\site-packages\jira\resilientsession.py", line 174, in get
return self.__verb("GET", url, **kwargs)
File "...\venv38\lib\site-packages\jira\resilientsession.py", line 170, in __verb
raise_on_error(response, verb=verb, **kwargs)
File "...\venv38\lib\site-packages\jira\resilientsession.py", line 54, in raise_on_error
raise JIRAError(jira.exceptions.JIRAError: JiraError HTTP 401 url: http://*.com/rest/api/2/serverInfo
text: {"baseUrl":"http://*.com","version":"*","versionNumbers":[*],"deploymentType":"Server","buildNumber":*,"buildDate":"*","databaseBuildNumber":*,"scmInfo":"*","serverTitle":"Jira"}
response headers = {'X-AREQUESTID': '*', 'x-anodeid': '*', 'referrer-policy': '*', 'X-XSS-Protection': '*', 'X-Content-Type-Options': '*', 'x-frame-options': '*', 'content-security-policy': '*', 'strict-transport-security': '*', 'set-cookie': '*', 'x-asessionid': '*', 'X-AUSERNAME': '*', 'cache-control': '*', 'content-encoding': '*', 'vary': '*', 'Content-Type': 'application/json;charset=UTF-8', 'transfer-encoding': 'chunked', 'date': 'Wed, 16 Feb 2022 10:28:10 GMT'}
response text = {"baseUrl":"http://*.com","version":"*","versionNumbers":[*],"deploymentType":"Server","buildNumber":*,"buildDate":"*","databaseBuildNumber":*,"scmInfo":"*","serverTitle":"Jira"}
Same problem with confluence rest api. Kerberos autentification stop work. Basic autentification works well in the same time.
The problem is not in JIRA (or CONFLUENCE) module. I've tried with requests python lilbrary. No autentification received.
Autentification stopped working a couple days ago.
by any chance, did you get it working with Kerberos authentication?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.