diff --git a/src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.cs b/src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.cs index 84ab4b325d..81a7dbefba 100644 --- a/src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.cs +++ b/src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.cs @@ -1470,6 +1470,7 @@ public override SecurityToken ReadToken(string token) /// A 'JSON Web Token' (JWT) in JWS or JWE Compact Serialization Format. /// A required for validation. /// A + [Obsolete("`JsonWebTokens.ValidateToken(string, TokenValidationParameters)` has been deprecated and will be removed in a future release. Use `JsonWebTokens.ValidateTokenAsync(string, TokenValidationParameters)` instead. For more information, see https://aka.ms/https://aka.ms/IdentityModel/7-breaking-changes", false)] public virtual TokenValidationResult ValidateToken(string token, TokenValidationParameters validationParameters) { return ValidateTokenAsync(token, validationParameters).ConfigureAwait(false).GetAwaiter().GetResult();