Hi all,
I am using the Jira python library and authenticating with an on premise Jira server.
logins to our Jira instance are being done via SSO.
The code is as follows:
options = {'server': 'https://Internal-JIRA-URL.com'}
self.jira = JIRA(options, basic_auth=(username, password))
I checked the credentials and url are correct, but still getting error 401.
I read that basic auth' was lately deprecated, with the api token solution for JIRA Cloud.
Was it also deprecated for JIRA Server (on prem)? If so, how can I fix this code?
Thanks in advance,
Sharon.
Hello @Sharon_George
Can you try this :
from jira import JIRA
jira = JIRA(basic_auth=('username', 'password'), options={'server': 'jiraURL'})
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.