-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
401 unauthorized error even though API token successful #248
Comments
Hi @almostfamous09 BTW: The Logs indicating same on my end:
|
Hi @ljay79 - This is what I assume as well, however I am the admin and my permissions are exactly the same as the PM that set up this filter. It works for the other PMs on the team. Filter permissions seem to be at the project level and we only have one project so this should work. I can see the filter but I cannot refresh the connected table / sheet. |
In Jira itself, can you see and access the filter in question. |
Strange. Can you create a complete new spreadsheet and try insert a new IssueTable. Maybe even try a new very basic filter. Just to eliminate a few possibilities of root cause. |
I created a brand new sheet and selected to "Create Issue Table from Filter" and before I could even make a selection I get that red error bar "No filters available!Failed to retrieve jira filters with status [401]!\nUnauthorized" even though my token is connected successfully and refreshes in Jira. In addition to the favorite filter colleague made, I created my own filter to see if that would resolve the issue. However, even as the creator/owner of a filter this error still occurs. Any other ideas? Thanks |
What happens when you access (via menu) the "Configure Custom fields" and/or "Show Jira field map"? |
BTW: Could you please provide me with your new Temp user key. |
Are you using email + token or username + token for your credentials? |
Please try to perform following in a terminal/console window on your workstation: Replace "emailAddress" and "apiToken" with your own values. Jira server:
Jira cloud:
Let me know what the response is... |
@almostfamous09 any new on this? |
Hello together, I've just checked the sourcecode and found the authentication always uses HTTP Basic Authentication Line 101 in 2616e9a
If one would like to use personalized API tokens instead of original username/password from JIRA then Bearer Authentication seems to be required (see https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html) We really found this Addon very useful but cannot provide user/pass due to security guidelines. Using an API token for that purpose would work for us. Any chance to implement:
Thanks & Best Regards, |
Hi @ljay79 , |
Hi @gewuerzgurke84 Did you tried that already? |
Hi @ljay79, I think you're refering to the API-Tokens which are implemented on Jira Cloud. We run Jira instances on-premise (server/dc edition) which provide so called "Personal Access Token" in recent versions (see https://jira.atlassian.com/browse/JRASERVER-67869). These personal access tokens do not have username/password using Basic-Auth but use a bearer token:
Thx & BR, |
You are right, i understand now. "API Token" vs. "Personal Access Token". Would you be able to temporary setup a test user on your system so i might be able to integrate such feature and test it properly? |
Sure, we can do this. Maybe you could provide an email address/telegram/whatever you prefer, so I can drop you the link, username, password? |
@gewuerzgurke84 please check it out. Release v1.4.9 is now published supporting "Personal Access Token" for Bearer authentication. |
Cool, thanks a lot for the release. I've justed tested it and it work's really good. One trivial issue I've found is that there is no error message if you try a wrong personal access token. Only in case the token is valid a success message shows up... |
Yeah, i will need to see if this specific to your server or an general issue.
|
Getting the same behavior for confluence server REST API. Wrong token returns 200 with a proper json response looking like this |
** Provide a general summary of the issue in the Title above **
My colleagues are able to refresh an existing table but my refresh button does not do anything.
Tried to create a fresh table and received an 401 unauthorized error and am unable to create.
** Provide a more detailed information of the issue **
Steps to reproduce
** Provide Debugging information **
For further investigation, please activate Debugging in "About" dialog, provide us with your "Temp. User Key" and then perform at least one another try. This way it will log the error and debug information to project owners StackDriver logging account where we can analyze it better.
Temp user key: AI3kGSge9aZxGoHCP/bjiBa/suZLxdUvo2CkqYsf0D9oZM7lX2HNRZDojFBkRDh/1SqnSEMI1mGc
Steps to reproduce
** Provide a set of unambiguous steps to reproduce this bug include code, if relevant **
1.Open Google Sheets > Add-Ons > Project Aid for JIRA > Settings
2. Used proper JIRA link, username and API token.
3. Creating a new issue table --> Receiving a 401 Unauthorized error on
Also not able to refresh an existing table my colleague set up
API token set up said successful and Jira API is active and refesh seems accurate
Expected result
** Tell us what should happen **
Actual result
** Tell us what happens instead **
The text was updated successfully, but these errors were encountered: