Unable to authenticate to Jira Server/DC from the Atlassian VS Code Extension

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

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

Cause

There are a number of potential causes

  1. The SSL certificate required to connect is not publically trusted or has an imcomplete chain. Known error messages include:
    1. Error authenticating with Jira: Error: unable to verify the first certificate
  2. Unable to connect to the Jira Server as a proxy server is required, or must be bypassed. Known error messages include:
    1. Error authenticating with Jira: Request failed with status code 400
  3. Your Jira requires a third party SSO authenticator to log in

Resolution

Cause 1

  1. When authenticating, enable the Use Custom SSL Settings toggle
  2. Check on of the custom SSL options, and specify the full path to the certificate bundle or certificate file

Cause 2

  1. Edit your vscode settings.json

  2. Add or edit your proxy settings accordingly. For example:

     "http.proxy": "http://your.proxy:8080"

    To specify no proxy, use

    "http.proxy": ""

(info) 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



DescriptionAuthentication to Jira Server or DC is not possible via the Atlassian VS Code extension
ProductJira, Jira Service Desk
Last modified on Mar 26, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.