Sprache

AuthenticationResult Konstruktoren

Definition

Überlädt

Name Beschreibung
AuthenticationResult(String, Boolean, String, DateTimeOffset, DateTimeOffset, String, IAccount, String, IEnumerable<String>, Guid, AuthenticationResultMetadata, String)

Der Konstruktor soll Anwendungsentwicklern dabei helfen, ihre Apps zu testen. Ermöglicht das Simulierten von Authentifizierungsflüssen. App-Entwickler sollten nie neu im Produktcode sein AuthenticationResult .

AuthenticationResult(String, Boolean, String, DateTimeOffset, DateTimeOffset, String, IAccount, String, IEnumerable<String>, Guid, String, AuthenticationResultMetadata, ClaimsPrincipal, String, IReadOnlyDictionary<String,String>)

Der Konstruktor soll Anwendungsentwicklern dabei helfen, ihre Apps zu testen. Ermöglicht das Simulierten von Authentifizierungsflüssen. App-Entwickler sollten nie neu im Produktcode sein AuthenticationResult .

AuthenticationResult(String, Boolean, String, DateTimeOffset, DateTimeOffset, String, IAccount, String, IEnumerable<String>, Guid, AuthenticationResultMetadata, String)

Der Konstruktor soll Anwendungsentwicklern dabei helfen, ihre Apps zu testen. Ermöglicht das Simulierten von Authentifizierungsflüssen. App-Entwickler sollten nie neu im Produktcode sein AuthenticationResult .

public AuthenticationResult(string accessToken, bool isExtendedLifeTimeToken, string uniqueId, DateTimeOffset expiresOn, DateTimeOffset extendedExpiresOn, string tenantId, Microsoft.Identity.Client.IAccount account, string idToken, System.Collections.Generic.IEnumerable<string> scopes, Guid correlationId, Microsoft.Identity.Client.AuthenticationResultMetadata authenticationResultMetadata, string tokenType = "Bearer");
new Microsoft.Identity.Client.AuthenticationResult : string * bool * string * DateTimeOffset * DateTimeOffset * string * Microsoft.Identity.Client.IAccount * string * seq<string> * Guid * Microsoft.Identity.Client.AuthenticationResultMetadata * string -> Microsoft.Identity.Client.AuthenticationResult
Public Sub New (accessToken As String, isExtendedLifeTimeToken As Boolean, uniqueId As String, expiresOn As DateTimeOffset, extendedExpiresOn As DateTimeOffset, tenantId As String, account As IAccount, idToken As String, scopes As IEnumerable(Of String), correlationId As Guid, authenticationResultMetadata As AuthenticationResultMetadata, Optional tokenType As String = "Bearer")

Parameter

accessToken
String

Zugriffstoken, das als Bearertoken für den Zugriff auf geschützte Web-APIs verwendet werden kann

isExtendedLifeTimeToken
Boolean

Siehe IsExtendedLifeTimeToken.

uniqueId
String

Eindeutige ID des Kontos. Er kann null sein. Wenn dies IdToken nicht nullder Fall ist, handelt es sich hierbei um die ID, d. h. den ObjectId-Anspruch oder wenn dieser Anspruch lautet null, der Antragstelleranspruch.

expiresOn
DateTimeOffset

Ablaufdatum für das Zugriffstoken

extendedExpiresOn
DateTimeOffset

Siehe ExtendedExpiresOn.

tenantId
String

Bezeichner für den Azure AD-Mandanten, von dem das Token erworben wurde. Kann null sein

account
IAccount

Kontoinformationen

idToken
String

Identifikationstoken

scopes
IEnumerable<String>

Vom Dienst zurückgegebene Bereichswerte gewährt

correlationId
Guid

Die Korrelations-ID der Authentifizierungsanforderung

authenticationResultMetadata
AuthenticationResultMetadata

Enthält Metadaten im Zusammenhang mit dem Authentifizierungsergebnis.

tokenType
String

Der Tokentyp ist standardmäßig "Bearer". Hinweis: Diese Eigenschaft ist experimentell und kann sich in zukünftigen Versionen der Bibliothek ändern.

Hinweise

Aus Gründen der Abwärtskompatibilität mit MSAL 4.17-4.20

Gilt für:

AuthenticationResult(String, Boolean, String, DateTimeOffset, DateTimeOffset, String, IAccount, String, IEnumerable<String>, Guid, String, AuthenticationResultMetadata, ClaimsPrincipal, String, IReadOnlyDictionary<String,String>)

Der Konstruktor soll Anwendungsentwicklern dabei helfen, ihre Apps zu testen. Ermöglicht das Simulierten von Authentifizierungsflüssen. App-Entwickler sollten nie neu im Produktcode sein AuthenticationResult .

public AuthenticationResult(string accessToken, bool isExtendedLifeTimeToken, string uniqueId, DateTimeOffset expiresOn, DateTimeOffset extendedExpiresOn, string tenantId, Microsoft.Identity.Client.IAccount account, string idToken, System.Collections.Generic.IEnumerable<string> scopes, Guid correlationId, string tokenType = "Bearer", Microsoft.Identity.Client.AuthenticationResultMetadata authenticationResultMetadata = default, System.Security.Claims.ClaimsPrincipal claimsPrincipal = default, string spaAuthCode = default, System.Collections.Generic.IReadOnlyDictionary<string,string> additionalResponseParameters = default);
new Microsoft.Identity.Client.AuthenticationResult : string * bool * string * DateTimeOffset * DateTimeOffset * string * Microsoft.Identity.Client.IAccount * string * seq<string> * Guid * string * Microsoft.Identity.Client.AuthenticationResultMetadata * System.Security.Claims.ClaimsPrincipal * string * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Microsoft.Identity.Client.AuthenticationResult
Public Sub New (accessToken As String, isExtendedLifeTimeToken As Boolean, uniqueId As String, expiresOn As DateTimeOffset, extendedExpiresOn As DateTimeOffset, tenantId As String, account As IAccount, idToken As String, scopes As IEnumerable(Of String), correlationId As Guid, Optional tokenType As String = "Bearer", Optional authenticationResultMetadata As AuthenticationResultMetadata = Nothing, Optional claimsPrincipal As ClaimsPrincipal = Nothing, Optional spaAuthCode As String = Nothing, Optional additionalResponseParameters As IReadOnlyDictionary(Of String, String) = Nothing)

Parameter

accessToken
String

Zugriffstoken, das als Bearertoken für den Zugriff auf geschützte Web-APIs verwendet werden kann

isExtendedLifeTimeToken
Boolean

Siehe IsExtendedLifeTimeToken.

uniqueId
String

Eindeutige ID des Kontos. Er kann null sein. Wenn dies IdToken nicht nullder Fall ist, handelt es sich dabei um die ID, d. h. den ObjectId-Anspruch, oder wenn dieser Anspruch lautet null, der Antragstelleranspruch.

expiresOn
DateTimeOffset

Ablaufdatum für das Zugriffstoken

extendedExpiresOn
DateTimeOffset

Siehe ExtendedExpiresOn.

tenantId
String

Bezeichner für den Azure AD-Mandanten, von dem das Token erworben wurde. Kann null sein

account
IAccount

Kontoinformationen

idToken
String

Identifikationstoken

scopes
IEnumerable<String>

Vom Dienst zurückgegebene Bereichswerte gewährt

correlationId
Guid

Die Korrelations-ID der Authentifizierungsanforderung

tokenType
String

Der Tokentyp ist standardmäßig "Bearer". Hinweis: Diese Eigenschaft ist experimentell und kann sich in zukünftigen Versionen der Bibliothek ändern.

authenticationResultMetadata
AuthenticationResultMetadata

Enthält Metadaten im Zusammenhang mit dem Authentifizierungsergebnis.

claimsPrincipal
ClaimsPrincipal

Ansprüche aus dem ID-Token

spaAuthCode
String

Vom Microsoft Identity Platform zurückgegebener Authentifizierungscode, wenn Sie AcquireTokenByAuthorizationCode.WithSpaAuthorizationCode() verwenden. Dieser Authentifizierungscode soll durch den Frontend-Code eingelöst werden. Siehe https://aka.ms/msal-net/spa-auth-code.

additionalResponseParameters
IReadOnlyDictionary<String,String>

Andere Eigenschaften aus der Tokenantwort.

Gilt für: