microsoft / PowerPlatformConnectors

This is a repository for Microsoft Power Automate, Power Apps, and Azure Logic Apps connectors
https://aka.ms/connectors
MIT License
964 stars 1.25k forks source link

[BUG] Jira Search (Independent Publisher) - 401 Unauthorized due to deprecated authentication type #1835

Open mattbze opened 2 years ago

mattbze commented 2 years ago

Type of Connector

Independent Publisher Connector

Name of Connector

Jira Search

Describe the bug

This connector is no longer able to authenticate with Jira Cloud. This is due to Jira Cloud deprecating basic auth for API requests.

{ "error": { "code": 401, "source": "uk-001.azure-apim.net", "clientRequestId": "53605c25-1ca8-41fb-b895-cdd8365da606", "message": "The response is not in a JSON format.", "innerError": "Basic authentication with passwords is deprecated. For more information, see: https://developer.atlassian.com/cloud/confluence/deprecation-notice-basic-auth/\n" } }

Is this a security bug?

No, this is not a security bug

What is the severity of this bug?

Severity 1 - Connector is broken or there's a very serious issue

To Reproduce

Set up a new power automate flow with this Jira Search (Independent Publisher) connector, use an account you know will auth when you login to Jira Cloud manually.

Expected behavior

I expected authentication to Jira Cloud to be authorized and the API requests to call successfully.

Environment summary

Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) CLI version (paconn --version) OS version Shell Type (e.g. bash, cmd.exe, Bash on Windows)

Additional context

Likely requires an update to fix

natalie-pienkowska commented 2 years ago

Hi @paulculmsee are you aware of this issue?

paulculmsee commented 2 years ago

No and I no longer have access to a Jira cloud instance to confirm as my client switched back to Jira Datacenter (onprem).

I'll have to spin up a demo instance and test but the docco here suggests that api token will work with basic auth. If anyone has a chance to confirm/replicate this please let me know.

https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/

pmf-dave commented 1 year ago

Hi all,

I can confirm that I was able to use the JIRA SEARCH feature in Power Automate. It's as @paulculmsee suggests above. Simply provide your email address for your JIRA user in the "username" field. In the "password" field, provide the API token you created in your JIRA user account. Works like a charm!

Cheers, Dave

Amjed-Ayoub commented 1 year ago

Thank you so much @pmf-dave. @mattbze can you please confirm and close the issue. Thank you so much.