InteractiveBrowserCredential.AuthenticateAsync Methode

Definition

Überlädt

AuthenticateAsync(CancellationToken)

Authentifiziert einen Benutzer interaktiv über den Standardbrowser. Das resultierende AuthenticationRecord wird automatisch in nachfolgenden Aufrufen von GetTokenAsync(TokenRequestContext, CancellationToken)verwendet.

AuthenticateAsync(TokenRequestContext, CancellationToken)

Authentifiziert einen Benutzer interaktiv über den Standardbrowser.

AuthenticateAsync(CancellationToken)

Quelle:
InteractiveBrowserCredential.cs
Quelle:
InteractiveBrowserCredential.cs

Authentifiziert einen Benutzer interaktiv über den Standardbrowser. Das resultierende AuthenticationRecord wird automatisch in nachfolgenden Aufrufen von GetTokenAsync(TokenRequestContext, CancellationToken)verwendet.

public virtual System.Threading.Tasks.Task<Azure.Identity.AuthenticationRecord> AuthenticateAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member AuthenticateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Identity.AuthenticationRecord>
override this.AuthenticateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Identity.AuthenticationRecord>
Public Overridable Function AuthenticateAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of AuthenticationRecord)

Parameter

cancellationToken
CancellationToken

Ein CancellationToken , der die Lebensdauer der Anforderung steuert.

Gibt zurück

Das Ergebnis der Authentifizierungsanforderung, die den abgerufenen AccessTokenenthält, und den , der AuthenticationRecord zum automatischen Authentifizieren des Kontos verwendet werden kann.

Gilt für:

AuthenticateAsync(TokenRequestContext, CancellationToken)

Quelle:
InteractiveBrowserCredential.cs
Quelle:
InteractiveBrowserCredential.cs

Authentifiziert einen Benutzer interaktiv über den Standardbrowser.

public virtual System.Threading.Tasks.Task<Azure.Identity.AuthenticationRecord> AuthenticateAsync (Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken = default);
abstract member AuthenticateAsync : Azure.Core.TokenRequestContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Identity.AuthenticationRecord>
override this.AuthenticateAsync : Azure.Core.TokenRequestContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Identity.AuthenticationRecord>
Public Overridable Function AuthenticateAsync (requestContext As TokenRequestContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AuthenticationRecord)

Parameter

requestContext
TokenRequestContext

Die Details der Authentifizierungsanforderung.

cancellationToken
CancellationToken

Ein CancellationToken , der die Lebensdauer der Anforderung steuert.

Gibt zurück

Die AuthenticationRecord des authentifizierten Kontos.

Gilt für: