-
Notifications
You must be signed in to change notification settings - Fork 909
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
Unidentified error with azure authentication #16655
Comments
Any update on this? I've had to stop using Azure Data studio and gone back to SQL Management studio, where this isn't a problem. |
@garyamorris I haven't seen this error before in other issues yet. Have you tried removing and readding the account? You could also try to remove the C:\Users[USERNAME]\AppData\Roaming\azuredatastudio folder to clear any cached state. If those don't work it's likely there is something specific to your AAD identify that is trigger an bug in our account management code that we'd need to root cause to fix. I'll take a look at the code path from the error in the description to see if there is any obvious problems. @cssuh do you have any suggestions on how to investigate/resolve this issue? |
Hi @garyamorris have you been able to sign in using AAD previously, or did this occur during your first attempt? |
Tried deleting the following folders with a complete uninstall. Still get "Unidentified error with azure authentication". I've also tried with version 1.32. C:\Users[USERNAME].azure I have used this somewhat successfully with Azure data studio and my AAD. Although every 11 days, I would have to completely remove and re-add the account. I raised a ticket on this as well. The only thing that changed before it stopped working was I recently signed in using Azure CLI and it never worked again after that. |
@garyamorris have you tried using Device Code auth? This can be enabled by the Device Code user setting. Sometimes this alternate auth mechanism avoids bugs that can be impacting particular AAD configurations. |
Update: I raised this with my organization. Other people don't have this problem and they're using the same ad authentication as myself. It appears to be my machine, which is imaged the same as theirs. This broke after I started using azure cli. Could it be some configuration ? |
Hi, getting the same issue, tried the device code method as well and getting this error any idea what the fix is? |
We don't consume Azure CLI while authenticating with Azure, so that seems unlikely. Are you able to gather and upload Azure logs for investigation?
There might be a failure during MSAL authentication, that's causing some issues. Would request you to gather and upload Azure logs so we can take a closer look. Please ensure you're testing with latest ADS release v1.41.1. Thanks! |
We need more info to debug your Azure Active Directory issue. If you could attach your logs to the issue (ensure no private data is in them), it would help us fix the issue much faster.
|
I get this when trying the Autho Code Grant method: [Error]: Error fetching tenants :TypeError: Cannot read properties of undefined (reading 'map') - [] And this with the device code method |
Hi @mesbahkhan I'm investigating why tenant list could be coming as empty for this account. Also can you provide more info what type of account it is? Work/School/Microsoft/any other? In the meantime, could you try to change back the authentication library to 'ADAL' in settings and test again? |
We've fixed these issues in latest releases, closing as resolved. |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
[2021-08-10 10:08:47.876] [renderer1] [debug] Read accounts from memento [] [2021-08-10 10:08:47.878] [renderer1] [error] Cannot read property 'accountType' of undefined: TypeError: Cannot read property 'accountType' of undefined at Ho.renderElement (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:925:61474) at Ho.renderElement (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:925:62128) at Q.renderElement (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:329:1630) at v.insertItemInDOM (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:311:17605) at v._splice (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:311:13500) at v.splice (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:311:11770) at file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:68:13422 at Array.forEach (<anonymous>) at t.splice (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:68:13409) at file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:329:7892 at g.bufferEvents (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:129:3699) at H.splice (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:329:7859) at V.updateAccounts (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:3595:82464) at B.updateProviderAccounts (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:3595:87570) at file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:3595:83795 at n.fire (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:129:1835) at file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:923:32823 at n.fire (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:129:1835) at _c.fireAccountListUpdate (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:3595:96107) at file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:3595:92164 at processTicksAndRejections (internal/process/task_queues.js:93:5) at async xr.run (file:///C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/workbench.desktop.main.js:925:17386) [2021-08-10 10:08:47.887] [renderer1] [debug] Read accounts from memento [{"canceled":false}] [2021-08-10 10:08:47.887] [renderer1] [debug] Read accounts from memento [] [2021-08-10 10:08:47.888] [renderer1] [debug] Read accounts from memento [] [2021-08-10 10:08:47.888] [renderer1] [debug] Read accounts from memento [] [2021-08-10 10:08:53.632] [renderer1] [error] An unknown error occurred. Please consult the log for more details. [2021-08-10 10:09:15.478] [renderer1] [debug] User data changed [2021-08-10 10:09:20.375] [renderer1] [debug] User data changed
The text was updated successfully, but these errors were encountered: