I've been getting Unauthorized (401) since 17/06/2019 when trying to run my rest api script in python.
I think it's due to the new authentication policy.
What is the equivalent of this line of code (the old method):
jira = JIRA({'server': "https://xxxx.atlassian.net/"}, basic_auth=("user@name.com", "password"))
in the 'api token' authentication method?
I've tried:
jira = requests.get('https://xxxxx.atlassian.net/', auth=('User@name.com', 'API_TOKEN'))
But I'm getting:
AttributeError: 'Response' object has no attribute 'projects'
in:
projects = jira.projects()
Your authentication should still be basic_auth, hopefully it is as simple as that
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.