-
Notifications
You must be signed in to change notification settings - Fork 132
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
Unable to use jiralib with Jira cloud and API Token #340
Comments
I wonder if something like that could be related? When you hit your domain, are you receiving any sort of redirect? What version of curl are you using? If there was a different default behavior between manually set header forwarding and the In the verbose output, do you see any matches for Authorization that differ between the two calls? (something like |
Here's what's showing up in Emacs from the requests debug output:
Here's the curl verbose log portion from a successful connection:
(I've anonymized the appropriate stuffs. And confirmed that the base64 encoded Basic Auth is identical to what |
I notice an XSRF cookie value in the Cookie header in your manual sample - what happens in your manual test cases if you omit the cookie jar? What happens on the Emacs side if you clear or delete this cookie jar file and then try? Sorry that most the suggestions amount to guess and check - this is not something I am able to setup a reproduction for - if you can figure out the issue, it'd be a nice fix to incorporate/solve though. |
Leaving the cookie out doesn't seem to make a difference. If I nuke the cookie jar, I get a new xsrf cookie set. I've resorted to digging into request.el to see if I can make it use the The main difference seems to be the ordering of the headers, and the only way I have managed to get the Authorization header into a place where it works, is with |
(Ignore the last comment, I made an error on the testing 😭) |
I had the same issue detailed here. Regenerating the API token fixed it for me. |
Same issue, we use 2FA and cloud JIRA. I have generated an API key. I have no idea where to enter this API key. "The first time you try and connect to jira you will be asked for your username and password" no, it did not, not on the first time nor on any subsequent time. All I get are error messages in the MESSAGES buffer (that tell me to look in the MESSAGES buffer) |
I just tried to set |
and if that doesn't work
|
Somewhat similar to #337, I'm unable to use an API token. What I've determined is the Authorization header created by requests is what's faulty. If I call an identical curl command manually using the
-u
parameter, it works fine. What's particularly interesting is that the authorization headers being generated by requests compared to the one generated by curl seem to be identical; the only change seems to be the ordering: curl seems to put it after cookies, while the requests version puts it before.(Newlines in below commandlines are only to improve readability.)
This one (roughly as generated by requests) doesn't work:
This one works fine:
The text was updated successfully, but these errors were encountered: