microsoft-authentication-library-for-dotnet
microsoft-authentication-library-for-dotnet copied to clipboard
[Bug] Region failures not well logged
trafficstars
msal 4.44
- Create CCA with region set to auto-detection. Set logger to Info.
- AcquireTokenForClient in an env not on Azure (e.g. personal dev machine)
- AcquireTokenForClient again.
Actual: in the log I see
first call
[Region discovery] Auto-discovery successful but found null or empty region. info (this is misleading)
[Region discovery] Region from REGION_NAME env variable not detected. 6/7/2022 6:10:03 PM (verbose)
HTTP expection for calling IMDS (verbose)
subsequent calls
[Region discovery] Not using a regional authority.
Expected:
first call
status of discovery from env variable and IMDS
first and subsequent calls
reason for auto-discovery failure (at WARN level)
Partially fixed by #3523
#3523 fix should be sufficient.