Skip to content

Commit

Permalink
Mark synchronous wrapper as obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
westin-m committed Aug 25, 2023
1 parent f470dca commit 727525e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,7 @@ public override SecurityToken ReadToken(string token)
/// <param name="token">A 'JSON Web Token' (JWT) in JWS or JWE Compact Serialization Format.</param>
/// <param name="validationParameters">A <see cref="TokenValidationParameters"/> required for validation.</param>
/// <returns>A <see cref="TokenValidationResult"/></returns>
[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();
Expand Down

0 comments on commit 727525e

Please sign in to comment.