Closed keyuxuan closed 1 month ago
I am curious that since Microsoft.Identity.Client.Desktop
is only supported in Windows, did we choose to simply not move to this alternative approach?
FWIW, I think broker/WAM is Windows only. So I think we'd actively want to avoid doing any broker specific logic on Mac and Linux. Someone correct me if I'm wrong here.
I am curious that since
Microsoft.Identity.Client.Desktop
is only supported in Windows, did we choose to simply not move to this alternative approach?
i dont think we can? because using Microsoft.Identity.Client.Desktop
would cause Build and Test to fail for macos and ubuntu platforms
I am curious that since
Microsoft.Identity.Client.Desktop
is only supported in Windows, did we choose to simply not move to this alternative approach?
Shalini, were you asking about this PR where we moved away from Microsoft.Identity.Client.Desktop
? If so yes, we moved away from that library earlier and use the alternative approach of newer Broker API. I think we still kept managed broker usage in benchmarking project to compare execution time of both broker apis. But MSAL has decided to deprecate that old API so we can no longer use that directly for benchmarking.
I am curious that since
Microsoft.Identity.Client.Desktop
is only supported in Windows, did we choose to simply not move to this alternative approach?Shalini, were you asking about this PR where we moved away from
Microsoft.Identity.Client.Desktop
? If so yes, we moved away from that library earlier and use the alternative approach of newer Broker API. I think we still kept managed broker usage in benchmarking project to compare execution time of both broker apis. But MSAL has decided to deprecate that old API so we can no longer use that directly for benchmarking.
Keyu pointed out that we didn't use/remove Microsoft.Identity.Client.Desktop
in that PR but we had PR open where we were planning to remove it but that didn't merge 😅
https://github.com/AzureAD/microsoft-authentication-cli/pull/82
Changes:
4.61.3
Starting from MSAL version
4.61.0
, usage ofWithBroker
method with no parameter is deprecated, so the methodclientBuilder.WithBroker();
used inBrokerBenchmark
class becomes obsolete.According to the release log, the alternative to that is to reference
Microsoft.Identity.Client.Desktop
when authenticating with browser and callWithWindowsEmbeddedBrowserSupport()
.I tried that, but looks like
Microsoft.Identity.Client.Desktop
only support Windows platform, it does not support macos and ubuntu platforms, so theBuild and Test
failed for those 2 platforms from my earlier commits .Also currently in
Broker
class, we are explicitly only usinginteractive authentication with Windows Broker
, so the else block (which is used forManagedBrokerBenchmark
) inBrokerBenchmark
class seems unnecessary. So i decided to just remove the else block.Testing
Benchmark test
4.61.3
4.59.1
Other
Tested following commands on both mac and windows: