<PackageReference Include="Azure.Core" Version="1.53.0" />

Azure.Identity.InteractiveBrowserCredential

A TokenCredential implementation which launches the system default browser to interactively authenticate a user and obtain an access token. The browser will only be launched to authenticate the user once, then will silently acquire access tokens through the user's refresh token as long as it's valid. For usage instructions, see Interactive browser authentication.
namespace Azure.Identity { public class InteractiveBrowserCredential : TokenCredential { public InteractiveBrowserCredential(); public InteractiveBrowserCredential(InteractiveBrowserCredentialOptions options); public InteractiveBrowserCredential(string clientId); public InteractiveBrowserCredential(string tenantId, string clientId, TokenCredentialOptions options = null); public virtual AuthenticationRecord Authenticate(CancellationToken cancellationToken = default(CancellationToken)); public virtual Task<AuthenticationRecord> AuthenticateAsync(CancellationToken cancellationToken = default(CancellationToken)); public virtual AuthenticationRecord Authenticate(TokenRequestContext requestContext, CancellationToken cancellationToken = default(CancellationToken)); public virtual Task<AuthenticationRecord> AuthenticateAsync(TokenRequestContext requestContext, CancellationToken cancellationToken = default(CancellationToken)); } }