Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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