Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure SQL: No Authorization code was returned from the server #23199

Closed
Aileron79 opened this issue Mar 21, 2024 · 6 comments
Closed

Azure SQL: No Authorization code was returned from the server #23199

Aileron79 opened this issue Mar 21, 2024 · 6 comments

Comments

@Aileron79
Copy link

Aileron79 commented Mar 21, 2024

Description

I have been using dbeaver with Azure SQL quite a while, the day before yesterday it stopped working with this error message when trying to connect with my Active Directory user:

image

In the browser window which usually says "Authentication complete, you can now close this window" I just get this:

image

Edit:
The issue appeared simultaneously on multiple machines. Note that I also tried older versions, back to 23.3.0, the issue persists. Also, these versions used to work. My assumption is that maybe MS changed something in their authentication flow. which is not captured by the driver.

My default browser is Chrome which usually is opened by dbeaver. I also tried to use the internal browser for authentication, but with that one I always ended up in an authorization loop, this has not changed.

Edit 2:
Seems to be Chrome-related since it works flawlessly when setting my default browser to Edge. Still, dbeaver will open the default browser even though I selected Microsoft Edge in the preferences.

DBeaver Version

24.0.0

Operating System

Windows 10 and 11

Database and driver

Azure SQL, Microsoft JDBC Driver for SQL Server

Steps to reproduce

Try to connect to an Azure SQL database not using database credentials but Azure identities as recommended by MS.

Additional context

I am tunnelling the connection through Azure VPN but that should not have any impact whatsoever.

@Destrolaric
Copy link
Member

Hi,
Could you please send me the log files? You can find instructions here: https://dbeaver.com/docs/wiki/Log-files/. Thank you.

@Viittis
Copy link

Viittis commented Mar 22, 2024

FYI, I can confirm the same issue. Similar issue is also repeated with SQL Server Management Studio 19 (I'm not using the latest version), so it suggests that perhaps a Chrome updated causes this issue.

Using dbeaver I can't connect at all, it just opens multiple new tabs on Chrome. Using SSMS19 I get access but the page is left open with an error message.

Hope info this helps with the issue

@Destrolaric
Copy link
Member

@Viittis Hi, JDBC driver has buggy behavior when it creates multiple pages of OAuth during retry attempts. So something else is probably leading to being unable to connect. microsoft/mssql-jdbc#2237
Logs, might help.
Could you please send me the log files? You can find instructions here: https://dbeaver.com/docs/wiki/Log-files/. Thank you.

@Viittis
Copy link

Viittis commented Mar 22, 2024

This works for me now, with both Dbeaver and SSMS19. I guess it was MS after all as I didnt update chrome in the last few hours.

@E1izabeth
Copy link
Member

@Aileron79 is this issue still actual for you?

@E1izabeth
Copy link
Member

It's been a while since no update here. If the issue is still actual please let me know and provide additional information.

@E1izabeth E1izabeth closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants