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

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

Solution

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:

    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

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.