<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview4-GetManagedIdentityCapabilitiesAsync" />

Microsoft.Identity.Client.Platforms.Shared.Desktop.OsBrowser.IUriInterceptor

interface IUriInterceptor
An abstraction over objects that are able to listen to localhost url (e.g. http://localhost:1234) and to retrieve the authorization response via GET (query params) or POST (form data)
namespace Microsoft.Identity.Client.Platforms.Shared.Desktop.OsBrowser { internal interface IUriInterceptor { Task<AuthorizationResponse> ListenToSingleRequestAndRespondAsync(int port, string path, Func<AuthorizationResponse, MessageAndHttpCode> responseProducer, CancellationToken cancellationToken); } }