Skip to content

[Bug]: auth for connection to dataverse broke in 1.42.0 #22188

@ematt70

Description

@ematt70

Description

auth for connection to dataverse broke in 1.42.0, still does not work in current version.

In 1.41.0, the following configuration works to authenticate with dataverse:

Image

When trying the same in 1.42.0, 1.42.1 or 1.42.2, it gives the following error:

mssql: Error 18456: Login failed: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Bearer authorization_uri=https://login.microsoftonline.com/39b03722-b836-496a-85ec-850f0957ca6b/oauth2/authorize, resource_id=(environment server)'. RequestId: TDS;64b1faff-339f-4aed-afb3-76e0b9b5adab;1 Time: 2026-05-26T18:08:37.1743748Z

Steps to Reproduce

Set up new database connection to a dataverse database.
Use appropriate server name from session details in dataverse environment (excluding the "https://").
Use Microsoft Entra ID - Universal with MFA support for auth type
Sign in using appropriate credentials
Connect

Affected Area

  • Connection dialog (SQL Server | Azure browse/Fabric browse)
  • Query editor
  • Query results panel
  • Object Explorer
  • GitHub Copilot integration
  • Preview/Edit data
  • Table Designer
  • Schema Designer
  • Schema Compare
  • Local SQL Server Container provisioning
  • SQL database in Fabric provisioning
  • DACPAC/BACPAC export/import
  • SQL Database projects
  • Query Plan Visualizer
  • Other (please describe below)

If you selected "Other", please describe the affected area

No response

Environment Information

VSCODE
Version: 1.121.0 (Universal)
Commit: f6cfa2ea2403534de03f069bdf160d06451ed282
Date: 2026-05-19T11:51:53+02:00
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.5.0

MSSQL
1.42.0, 1.42.1, 1.42.2

OS
Mac OSX 26.5

Confirmation

  • I have searched existing issues and couldn't find a match
  • I want to work on this issue

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions