SecurityTokenResult Class
Definition
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.
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. |