-
-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jira token_auth not working #1897
Comments
Can you please try: jira_instance = JIRA(
server='https://XXX.atlassian.net/',
basic_auth=(<username/email here>, <token here>),
) and see if that works? |
This way it doesn't give any error when instancing but later when trying to, for example: I'm getting the token trough OAuth 2.0 (3LO) apps, idk if this helps |
Update: I was able to create an instance using this: JIRA(
server=f"https://api.atlassian.com/ex/jira/{cloud_id}",
token_auth=access_token,
validate=False
) there are a few enpoints, like |
Hi, I am having a similar issues with my companys jira server using token without verification This is my code. options = {'server':'https://abc', 'verify':False} jira = JIRA(options, token_auth="xyz") For some unknown reason, it already leads to a 404 error complaining about the non-existence of https://abc/api/2/serverInfo where abc is the server address of my own company. What should I do with the endpoints provided by the admin of the jira server of my company? I am provided abc and abc/jira/rest/api/2/myself/ I tried both but "rest/api/2/serverInfo" is added to both addresses and then a 404 error. |
I ask the admin about the cloudid solution. But we are using jira datacenter and so he does not have one. Any idea on a solution for token auth plus jira data center? |
Bug summary
I tried doing something like this:
I'm getting the folowing error:
the access token is valid, normal requests to te API works.
Is there an existing issue for this?
Jira Instance type
Jira Cloud (Hosted by Atlassian)
Jira instance version
No response
jira-python version
3.8.0
Python Interpreter version
3.12
Which operating systems have you used?
Reproduction steps
Stack trace
Expected behaviour
It should authenticate and let me use the instance.
Additional Context
No response
The text was updated successfully, but these errors were encountered: