Microsoft.IdentityModel.Tokens.Experimental.IResultBasedValidation
Experimental interface that provides result based token validation instead of throwing exceptions.
Task<ValidationResult<ValidatedToken, ValidationError>> ValidateTokenAsync(string token, ValidationParameters validationParameters, CallContext callContext)
Validates a token.
On a validation failure, no exception will be thrown; instead, the ValidationError will contain the information about the error that occurred.
Callers should always check the ValidationResult.IsValid property to verify the validity of the result.
Task<ValidationResult<ValidatedToken, ValidationError>> ValidateTokenAsync(string token, ValidationParameters validationParameters, CallContext callContext, CancellationToken cancellationToken)
Validates a token.
On a validation failure, no exception will be thrown; instead, the ValidationError will contain the information about the error that occurred.
Callers should always check the ValidationResult.IsValid property to verify the validity of the result.
Task<ValidationResult<ValidatedToken, ValidationError>> ValidateTokenAsync(SecurityToken securityToken, ValidationParameters validationParameters, CallContext callContext)
Validates a token.
On a validation failure, no exception will be thrown; instead, the ValidationError will contain the information about the error that occurred.
Callers should always check the ValidationResult.IsValid property to verify the validity of the result.
Task<ValidationResult<ValidatedToken, ValidationError>> ValidateTokenAsync(SecurityToken securityToken, ValidationParameters validationParameters, CallContext callContext, CancellationToken cancellationToken)
Validates a token.
On a validation failure, no exception will be thrown; instead, the ValidationError will contain the information about the error that occurred.
Callers should always check the ValidationResult.IsValid property to verify the validity of the result.