Latest Azure.Identity package caused an error with SqlClient
and Dynamics 365.
I connected to Dynamics 365 using Microsoft Entra Service Principal
authentication, and everything worked perfectly. I used SQL Server Management Studio 20.0.70.0 (latest one).
Also, I have a C# application using Dapper and SqlClient
(check the code below).
Everything worked perfectly until I upgraded the Azure.Identity
Package to 1.11.0
(updated five days ago). Downgrading it to 1.10.4
will make it work.
I cannot find any solution in Microsoft Docs.
Thank you.
Exception:
ClientSecretCredential authentication failed: AADSTS900023: Specified tenant identifier 'authorize' is neither a valid DNS name, nor a valid external domain. Trace ID: 52222220-3332-3331-3033-222225335233 Correlation ID: fddd3533-aaaa-4fab-8b49-22ea71b32723 Timestamp: 2024-04-14 20:20:52Z
Code: