Visual Studio code extension OAuth authentication throwing DNS errors for atlascode-oauth-service.services.atlassian.com
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
As a user, when setting up the Atlassian VS Code extension, you will get redirected to Bitbucket Cloud to provide the extension with the appropriate OAuth permissions.
In some cases, you will get redirected to atlascode-oauth-service.services.atlassian.com, which will cause you to get a DNS error message from Visual Studio Code, making the authentication attempt fail.
Environment
The affected environment is the Visual Studio Code Atlassian extension, using versions that are =< 2.10.4.
Diagnosis
When using the Atlassian VS Code extension, navigate to the Bitbucket Settings section. Under authentication, click on the "Login to Bitbucket Cloud".
You will be redirected to Bitbucket Cloud to provide the OAuth authorization to VS Code. If you are affected by this problem, you will get redirected to the following URL:
Cause
Being redirected to https://atlascode-oauth-service.services.atlassian.com/ will cause authentication to return to VS Code as a failure, due to DNS issues. This is caused by a combination of using an older version of the VS code extension and the "Use new Auth" option.
According to the following public issue on the extension, this was fixed on newer versions of the extension.
Solution
There are two things that need to be done to fix this issue:
Update the Atlassian Visual Studio Code extension to the latest available version.
Check your VS Code extension settings, and make sure that "Use new Auth" is not checked under the VSCode settings > Extensions submenu. If it is checked, uncheck it, and attempt to authenticate again.
Was this helpful?