Udostępnij za pośrednictwem


SecurityTokenResult Class

Definition

Defines the result of a security token validation.

public sealed class SecurityTokenResult
type SecurityTokenResult = class
Public NotInheritable Class SecurityTokenResult
Inheritance
SecurityTokenResult

Properties

Exception

Gets any exception thrown on validating an invalid token.

Principal

Gets the Principal which contains multiple claims-based identities after token validation.

Status

Gets the status of validated principal.

Methods

Empty()

Static initializer for creating validation result of an empty token.

Error(Exception)

Static initializer for creating validation result of an invalid token.

Success(ClaimsPrincipal)

Static initializer for creating validation result of a valid token.

Applies to