Unable to authenticate to Jira Server/DC from the Atlassian VS Code Extension
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
問題
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.
診断
環境
Jira Server or Data Center
- You are using the Jira and Bitbucket (Official) VS Code extension
原因
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
ソリューション
原因 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
原因 2
Edit your vscode settings.json
Add or edit your proxy settings accordingly. For example:
"http.proxy": "http://your.proxy:8080"
To specify no proxy, use
"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
原因 3
The VSCode extension does not currently support third party SSO.
For more information please see Atlascode Issue #237