MSAL - Net Throttling (Cache Tokens) ??
Namshub101
Posts: 7 Bronze 1
in SQL Doc
When i Use the SQL Doc application to document a simple Azure DB i get the following error;
Microsoft.Data.SqlClient.SqlException (0x80131904): Failed to authenticate the user <USERNAME> in Active Directory (Authentication=ActiveDirectoryPassword).
Microsoft.Data.SqlClient.SqlException (0x80131904): Failed to authenticate the user <USERNAME> in Active Directory (Authentication=ActiveDirectoryPassword).
Error code 0xinvalid_grant
Your app has been throttled by AAD due to too many requests. To avoid this, cache your tokens see https://aka.ms/msal-net-throttling.
Are you able to advise where in the Azure Portal I can get this supported as the link above - basically tells me how to write code to support this.
Are you able to advise where in the Azure Portal I can get this supported as the link above - basically tells me how to write code to support this.
Tagged:
Best Answer
-
Jon_Kirkwood Posts: 441 Gold 1Hi all,
Sorry that this issue is persisting for you, we have had some reports of users resolving this by changing their authentication method.
If you are using the following connection method:Active Directory integrated authentication (Azure)
Can you please try changing it toActive Directory universal with MFA authentication (Azure)
and advising if this error is still persisting.
Jon Kirkwood | Technical Support Engineer | Redgate Software
Answers
Thank you for contacting Redgate support regarding your SQL Doc query.
Sorry you are getting an error when accessing an Azure DB
I've had a look through our knowledge base and am not familiar with this error occurring in our products before. Are you able to share a screenshot of the error so I can see what is going on.
Can you confirm the version of SQL Doc you are running.
Our latest version is v5.2.5. If you are running an older version are you able to patch and advise if the error still occurs. Download for this version is available here:
https://download.red-gate.com/checkforupdates/SQLDoc/SQLDoc_5.2.5.3318.exe
Finally, if the error is still occurring can you please provide a copy of your log files so we can investigate further. Please set logging to Verbose
https://documentation.red-gate.com/sdoc/troubleshooting/logging-and-log-files
You can upload the logs to this unique link - it will be active for 14 days
https://files.red-gate.com/requests/JTJ7cGoxbAeS4MDAtiIdIF
Shall look at the error log & screenshots and discuss with the SQL Doc product experts and expect to provide an update shortly
Our development team are looking into this and are wondering if you are able to assist by downgrading your SQL Doc version to v5.2.2 and advise if you are still getting this throttling error
Download link is here:
https://download.red-gate.com/checkforupdates/SQLDoc/SQLDoc_5.2.2.2893.exe
Looking forward to your feedback regarding this and hopefully lead to a fix.
I can confirm that downgrading the tool worked and i can now complete a documentation task against the failing database
Would suggest staying on v5.2.2 until a new release is made available referencing a fix to Azure/Active Directory authentication.
I will attempt to come back to this thread with an update but would also suggest monitoring the SQL Doc release notes:
https://documentation.red-gate.com/sdoc/release-notes-and-other-versions/sql-doc-5-2-release-notes
Our developers have announced release of v5.2.6 which has included support for SSMS 19 GA and potential fix for this throttling error.
Can you please patch at your earliest convenience and verify if this issue has now been resolved.
Download link here:
https://download.red-gate.com/checkforupdates/SQLDoc/SQLDoc_5.2.6.3425.exe
Version 5.2.6 - February 22nd, 2023
Features
I can confirm that this work around worked (when i managed to get my correct Admin account format - hence removal of the last updated
Active Directory universal with MFA authentication (Azure)