We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.63.0
net8.0-windows10.0.22621.0, latest patch
PublicClient - desktop app
The app is in production, I haven't upgraded MSAL, but started seeing this issue
We observe that the time measurement reported from AuthenticationResultMetadata is not accurate.
private static readonly BrokerOptions WamBrokerOptions = new(BrokerOptions.OperatingSystems.Windows); var publicClient = PublicClientApplicationBuilder .Create("{{clientId}}") .WithBroker(WamBrokerOptions) .WithAuthority(AzureCloudInstance.AzurePublic, AadAuthorityAudience.AzureAdMultipleOrgs) .WithRedirectUri("https://login.microsoftonline.com/common/oauth2/nativeclient") .Build(); var start = Stopwatch.GetTimestamp(); var authenticationResult = await publicClient .AcquireTokenSilent(scopes, PublicClientApplication.OperatingSystemAccount) .ExecuteAsync(); var duration = Stopwatch.GetElapsedTime(start); Console.WriteLine($"DurationTotalInMs: {authenticationResultMetadata.DurationTotalInMs}"); Console.WriteLine($"Stopwatch Measured in ms: {duration.TotalMilliseconds}");
We expect the Stopwatch measured duration and the DurationTotalInMs to be closer to actual.
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Library version used
4.63.0
.NET version
net8.0-windows10.0.22621.0, latest patch
Scenario
PublicClient - desktop app
Is this a new or an existing app?
The app is in production, I haven't upgraded MSAL, but started seeing this issue
Issue description and reproduction steps
We observe that the time measurement reported from AuthenticationResultMetadata is not accurate.
Relevant code snippets
Expected behavior
We expect the Stopwatch measured duration and the DurationTotalInMs to be closer to actual.
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No response
The text was updated successfully, but these errors were encountered: