InteractiveBrowserCredential Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
public class InteractiveBrowserCredential : Azure.Core.TokenCredential, Azure.Core.ISupportsProofOfPossession
type InteractiveBrowserCredential = class
inherit TokenCredential
type InteractiveBrowserCredential = class
inherit TokenCredential
interface ISupportsProofOfPossession
Public Class InteractiveBrowserCredential
Inherits TokenCredential
Public Class InteractiveBrowserCredential
Inherits TokenCredential
Implements ISupportsProofOfPossession
- Inheritance
- Implements
-
Azure.
Core. ISupports Proof OfPossession
Interactive |
Creates a new InteractiveBrowserCredential with the specified options, which will authenticate users. |
Interactive |
Creates a new InteractiveBrowserCredential with the specified options, which will authenticate users with the specified application. |
Authenticate(Cancellation |
Interactively authenticates a user via the default browser. |
Authenticate(Pop |
Interactively authenticates a user via the default browser. The resulting AuthenticationRecord will automatically be used in subsequent calls to GetToken(TokenRequestContext, CancellationToken). |
Authenticate(Token |
Interactively authenticates a user via the default browser. The resulting AuthenticationRecord will automatically be used in subsequent calls to GetToken(TokenRequestContext, CancellationToken). |
Authenticate |
Interactively authenticates a user via the default browser. The resulting AuthenticationRecord will automatically be used in subsequent calls to GetTokenAsync(TokenRequestContext, CancellationToken). |
Authenticate |
Interactively authenticates a user via the default browser. |
Authenticate |
Interactively authenticates a user via the default browser. |
Get |
Silently obtains an AccessToken for a user account if the user has already authenticated. Otherwise, the default browser is launched to authenticate the user. Acquired tokens are cached by the credential instance. Token lifetime and refreshing is handled automatically. Where possible, reuse credential instances to optimize cache effectiveness. |
Get |
Silently obtains an AccessToken for a user account if the user has already authenticated. Otherwise, the default browser is launched to authenticate the user. Acquired tokens are cached by the credential instance. Token lifetime and refreshing is handled automatically. Where possible, reuse credential instances to optimize cache effectiveness. |
Get |
Silently obtains an AccessToken for a user account if the user has already authenticated. Otherwise, the default browser is launched to authenticate the user. Acquired tokens are cached by the credential instance. Token lifetime and refreshing is handled automatically. Where possible, reuse credential instances to optimize cache effectiveness. |
Get |
Silently obtains an AccessToken for a user account if the user has already authenticated. Otherwise, the default browser is launched to authenticate the user. Acquired tokens are cached by the credential instance. Token lifetime and refreshing is handled automatically. Where possible, reuse credential instances to optimize cache effectiveness. |
Product | Versions |
---|---|
Azure SDK for .NET | Latest, Preview |
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: