InteractiveBrowserCredential Class

Definition

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 users refresh token as long as it's valid.

public class InteractiveBrowserCredential : Azure.Core.TokenCredential
type InteractiveBrowserCredential = class
    inherit TokenCredential
Public Class InteractiveBrowserCredential
Inherits TokenCredential
Inheritance
InteractiveBrowserCredential

Constructors

InteractiveBrowserCredential()

Creates a new InteractiveBrowserCredential with the specified options, which will authenticate users.

InteractiveBrowserCredential(InteractiveBrowserCredentialOptions)

Creates a new InteractiveBrowserCredential with the specified options, which will authenticate users with the specified application.

InteractiveBrowserCredential(String)

Creates a new InteractiveBrowserCredential with the specified options, which will authenticate users with the specified application.

InteractiveBrowserCredential(String, String, TokenCredentialOptions)

Creates a new InteractiveBrowserCredential with the specified options, which will authenticate users with the specified application.

Methods

Authenticate(CancellationToken)

Interactively authenticates a user via the default browser.

Authenticate(TokenRequestContext, CancellationToken)

Interactively authenticates a user via the default browser.

AuthenticateAsync(CancellationToken)

Interactively authenticates a user via the default browser.

AuthenticateAsync(TokenRequestContext, CancellationToken)

Interactively authenticates a user via the default browser.

GetToken(TokenRequestContext, CancellationToken)

Obtains an AccessToken token for a user account silently if the user has already authenticated, otherwise the default browser is launched to authenticate the user. This method is called by Azure SDK clients. It isn't intended for use in application code.

GetTokenAsync(TokenRequestContext, CancellationToken)

Obtains an AccessToken token for a user account silently if the user has already authenticated, otherwise the default browser is launched to authenticate the user. This method is called by Azure SDK clients. It isn't intended for use in application code.

Applies to