From dfe9ea29f550e613b70c2646f60d65caf1493e7a Mon Sep 17 00:00:00 2001 From: CruzMarcio Date: Tue, 14 Mar 2023 23:22:54 -0300 Subject: [PATCH] Fix typo in documentation (#2034) --- .../TokenValidationParameters.cs | 2 +- src/Microsoft.IdentityModel.Tokens/Validators.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs b/src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs index 373d9e5d5c..93d77fa3c3 100644 --- a/src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs +++ b/src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs @@ -820,7 +820,7 @@ public string RoleClaimType public bool ValidateLifetime { get; set; } /// - /// Gets or sets a boolean that controls if the the vaidation order of the payload and signature during token validation. + /// Gets or sets a boolean that controls the validation order of the payload and signature during token validation. /// /// If is set to ture, it will validate payload ahead of signature . /// The default is false. diff --git a/src/Microsoft.IdentityModel.Tokens/Validators.cs b/src/Microsoft.IdentityModel.Tokens/Validators.cs index 0c3807e0d2..4eb5ade68b 100644 --- a/src/Microsoft.IdentityModel.Tokens/Validators.cs +++ b/src/Microsoft.IdentityModel.Tokens/Validators.cs @@ -54,7 +54,7 @@ public static void ValidateAlgorithm(string algorithm, SecurityKey securityKey, /// The audiences found in the . /// The being validated. /// required for validation. - /// If 'vaidationParameters' is null. + /// If 'validationParameters' is null. /// If 'audiences' is null and is true. /// If is null or whitespace and is null. /// If none of the 'audiences' matched either or one of . @@ -183,7 +183,7 @@ private static bool AudiencesMatchIgnoringTrailingSlash(string tokenAudience, st /// The that is being validated. /// required for validation. /// The issuer to use when creating the "Claim"(s) in a "ClaimsIdentity". - /// If 'vaidationParameters' is null. + /// If 'validationParameters' is null. /// If 'issuer' is null or whitespace and is true. /// If is null or whitespace and is null. /// If 'issuer' failed to matched either or one of . @@ -201,7 +201,7 @@ public static string ValidateIssuer(string issuer, SecurityToken securityToken, /// required for validation. /// The required for issuer and signing key validation. /// The issuer to use when creating the "Claim"(s) in a "ClaimsIdentity". - /// If 'vaidationParameters' is null. + /// If 'validationParameters' is null. /// If 'issuer' is null or whitespace and is true. /// If ' configuration' is null. /// If is null or whitespace and is null and is null. @@ -288,7 +288,7 @@ internal static string ValidateIssuer(string issuer, SecurityToken securityToken /// required for validation. /// if 'securityKey' is null and ValidateIssuerSigningKey is true. /// if 'securityToken' is null and ValidateIssuerSigningKey is true. - /// if 'vaidationParameters' is null. + /// if 'validationParameters' is null. public static void ValidateIssuerSecurityKey(SecurityKey securityKey, SecurityToken securityToken, TokenValidationParameters validationParameters) { ValidateIssuerSecurityKey(securityKey, securityToken, validationParameters, null); @@ -370,7 +370,7 @@ internal static void ValidateIssuerSecurityKey(SecurityKey securityKey, Security /// The 'expiration' time found in the . /// The being validated. /// required for validation. - /// If 'vaidationParameters' is null. + /// If 'validationParameters' is null. /// If 'expires.HasValue' is false and is true. /// If 'notBefore' is > 'expires'. /// If 'notBefore' is > DateTime.UtcNow.