Python: 3.8
Jira module: jira-2.0.0-py2.py3-none-any.whl
This is my python script:
import jira.client
from jira import JIRA
import getpass
import urllib3
urllib3.disable_warnings()
passwd = getpass.getpass("Password: ")
jira = JIRA(options = {'server': 'https://jira.example.com', 'verify': False}, basic_auth=('username', passwd))
Output:
WARNING:root:Got recoverable error from GET https://jira.example.com/rest/api/2/serverInfo, will retry [1/3] in 13.933683721316022s. Err: 401
The point is, authentication to Jira page is with:
* username
* password
I don't have neither a ca.cert nor a rsa_id file nor any similar thing stored into my computer to be able to access jira page through a web browser.
Any idea to implement this kind of authentication into my python script?