Skip to content

Commit

Permalink
Remove TransformBeforeSignatureValidationDelegate from ValidationPara…
Browse files Browse the repository at this point in the history
…meters (#2848)

* Removed TransformBeforeSignatureValidationDelegate from ValidationParameters since it is not used in the new path

* Removed delegate definition
  • Loading branch information
iNinja authored Sep 26, 2024
1 parent ad16a7f commit 5de1dc8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions src/Microsoft.IdentityModel.Tokens/Delegates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,5 @@ namespace Microsoft.IdentityModel.Tokens
/// <remarks>This method is not expected to throw.</remarks>
/// <returns>The validated <see cref="SecurityToken"/>.</returns>
internal delegate ValidationResult<SecurityKey> SignatureValidationDelegate(SecurityToken token, ValidationParameters validationParameters, BaseConfiguration? configuration, CallContext? callContext);

/// <summary>
/// Transforms the security token before signature validation.
/// </summary>
/// <param name="token">The <see cref="SecurityToken"/> being validated.</param>
/// <param name="validationParameters">The <see cref="ValidationParameters"/> to be used for validating the token.</param>
/// <returns>The transformed <see cref="SecurityToken"/>.</returns>
internal delegate SecurityToken TransformBeforeSignatureValidationDelegate(SecurityToken token, ValidationParameters validationParameters);
#nullable restore
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ protected ValidationParameters(ValidationParameters other)
TokenDecryptionKeys = other.TokenDecryptionKeys;
TokenReplayCache = other.TokenReplayCache;
TokenReplayValidator = other.TokenReplayValidator;
TransformBeforeSignatureValidation = other.TransformBeforeSignatureValidation;
TypeValidator = other.TypeValidator;
ValidateActor = other.ValidateActor;
ValidateSignatureLast = other.ValidateSignatureLast;
Expand Down Expand Up @@ -319,11 +318,6 @@ public IssuerValidationDelegateAsync IssuerValidatorAsync
set { _issuerValidatorAsync = value ?? throw new ArgumentNullException(nameof(value), "IssuerValidatorAsync cannot be set as null."); }
}

/// <summary>
/// Gets or sets a delegate that will be called to transform a token to a supported format before validation.
/// </summary>
public TransformBeforeSignatureValidationDelegate TransformBeforeSignatureValidation { get; set; }

/// <summary>
/// Allows overriding the delegate that will be used to validate the lifetime of the token
/// </summary>
Expand Down

0 comments on commit 5de1dc8

Please sign in to comment.