<PackageReference Include="Microsoft.Identity.Client" Version="4.84.0" />

Microsoft.Identity.Client.UI.IWebUI

interface IWebUI
Task<AuthorizationResult> AcquireAuthorizationAsync(Uri authorizationUri, Uri redirectUri, RequestContext requestContext, CancellationToken cancellationToken)

Uri UpdateRedirectUri(Uri redirectUri)

Extra validations on the redirect URI, for example system web views cannot work with the urn:oob... URI because there is no way of knowing which app to get back to. WebUIs can update the URI, for example use http://localhost:1234 instead of http://localhost. Throws, if URI is invalid.