Skip to content
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 Cloud auth only works if you uncheck "Use Personal Access Token instead of password" and then provide a token anyway #2528

Open
Nezteb opened this issue Mar 22, 2023 · 6 comments

Comments

@Nezteb
Copy link

Nezteb commented Mar 22, 2023

Your Environment

  • Version used: 7.11.5
  • Operating System and version: macOS Ventura 13.2.1

Expected Behavior

Jira Cloud auth should work as advertised.

Current Behavior

The only way I can get my Jira Cloud instance to auth successfully within Super Productivity is by providing a Jira Cloud PAT and unchecking the checkbox for using a token, as such:

Screenshot 2023-03-21 at 10 24 50 PM

If I try checking the box and providing a token, it fails.

If I have the box unchecked and provide a password, it fails.

The closest related GitHub issue I can find is #2383, but it's more of a sync issue after successfully authenticating.

Steps to Reproduce (for bugs)

  1. Start to connect a Jira Cloud instance.
  2. Check the "Use Personal Access Token instead of password" checkbox.
  3. Provide a Jira Cloud PAT.
  4. The auth will fail.
  5. Uncheck "Use Personal Access Token instead of password".
  6. Try again.
  7. The auth will work, despite you providing a PAT instead of a password.

Can you reproduce this reliably?

I've only tried with a single Jira Cloud instance, but on two different Macbooks and each time has the same result.

Console Output

When the auth fails, just a generic forbidden error shows up in the console.

Error Log (Desktop only)

❯ cat ~/Library/Logs/superProductivity/main.log
[bat error]: '/Users/noah/Library/Logs/superProductivity/main.log': No such file or directory (os error 2)
@Nezteb Nezteb added the bug label Mar 22, 2023
@github-actions
Copy link

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

@github-actions
Copy link

Hello there Nezteb! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

For more open ended discussions and/or specific questions, please visit the discussions page. 💖

@maytan-cogo
Copy link

Hi @Nezteb, I was integrating with Jira Cloud and got confused about which token to use. Turns out PAT is only available for Data Center and Server versions (https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html). For Jira Cloud API tokens are there. (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/)

So I think the "Use Personal Access Token instead of password" is not intended for Jira Cloud integration. The messaging can be improved to indicate this. Better, the checkbox can be disabled if the host is identified as Jira Cloud version (might not be possible though).

@github-actions
Copy link

This issue has not received any updates in 90 days. Please comment, if this still relevant!

@github-actions github-actions bot added the Stale label Aug 15, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2023
@hardyoyo
Copy link

It's a super valid issue; please do not auto-close this. It's also an excellent suggestion to change the wording @maytan-cogo. Would you like to submit a PR to make that change? I suggest improving the wording; don't try to make the system smart about Jira Cloud. Ping me here if you can't spare the time to make a PR, and I'll find the time to do it. I'm really happy that this bug was here for me to find, and that I have Super Productivity successfully connected to my Jira Cloud instance. Thank you so much, @Nezteb!

@hardyoyo
Copy link

OH, this issue is already closed. Darn bot. It should be re-opened.

@johannesjo johannesjo reopened this Aug 22, 2024
@github-actions github-actions bot removed the Stale label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants