Unable to authenticate to Jira Server/DC from the Atlassian VS Code Extension
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Problem
When attempting to connect to your Jira Data Center instance via the "Add Custom Jira Site" feature of Atlassian Jira and Bitbucket (Official) VS Code extension, the login fails with an error message:
Authentication error
Error authenticating with Jira: Error: <ERROR MESSAGE>
You are otherwise able to authenticate to and use Jira normally when not using the extension.
Diagnosis
Environment
Jira Server or Data Center
You are using the Jira and Bitbucket (Official) VS Code extension
Cause
There are a number of potential causes
The SSL certificate required to connect is not publically trusted or has an imcomplete chain. Known error messages include:
Error authenticating with Jira: Error: unable to verify the first certificate
Unable to connect to the Jira Server as a proxy server is required, or must be bypassed. Known error messages include:
Error authenticating with Jira: Request failed with status code 400
Your Jira requires a third party SSO authenticator to log in
Solution
Resolution
Cause 1
When authenticating, enable the Use Custom SSL Settings toggle
Check on of the custom SSL options, and specify the full path to the certificate bundle or certificate file
Cause 2
Edit your vscode settings.json
Add or edit your proxy settings accordingly. For example:
1
"http.proxy": "http://your.proxy:8080"
To specify no proxy, use
1
"http.proxy": ""
ℹ️ To exclude a specific domain from proxy lookup, add a comma delimited list of domains into your operating system environment variable NO_PROXY
Cause 3
The VSCode extension does not currently support third party SSO.
For more information please see Atlascode Issue #237
Was this helpful?