microsoft-authentication-library-for-dotnet icon indicating copy to clipboard operation
microsoft-authentication-library-for-dotnet copied to clipboard

[Bug] Region failures not well logged

Open bgavrilMS opened this issue 3 years ago • 1 comments
trafficstars

msal 4.44

  1. Create CCA with region set to auto-detection. Set logger to Info.
  2. AcquireTokenForClient in an env not on Azure (e.g. personal dev machine)
  3. 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)

bgavrilMS avatar Jun 07 '22 18:06 bgavrilMS

Partially fixed by #3523

pmaytak avatar Jul 29 '22 21:07 pmaytak

#3523 fix should be sufficient.

bgavrilMS avatar Oct 31 '22 10:10 bgavrilMS