From fa12679a45dc742d1be9b10957b924d0ad647dc2 Mon Sep 17 00:00:00 2001 From: Ignacio Inglese Date: Mon, 13 Jan 2025 13:55:20 +0000 Subject: [PATCH] Moved signature error back to internal after merging from the new validation model feature branch. --- .../Validation/Results/Details/SignatureValidationError.cs | 2 +- .../Validation/Results/Details/ValidationError.cs | 1 - .../Validation/Results/ValidatedToken.cs | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Microsoft.IdentityModel.Tokens/Validation/Results/Details/SignatureValidationError.cs b/src/Microsoft.IdentityModel.Tokens/Validation/Results/Details/SignatureValidationError.cs index 7b4bf700fe..2668e0cfdc 100644 --- a/src/Microsoft.IdentityModel.Tokens/Validation/Results/Details/SignatureValidationError.cs +++ b/src/Microsoft.IdentityModel.Tokens/Validation/Results/Details/SignatureValidationError.cs @@ -10,7 +10,7 @@ namespace Microsoft.IdentityModel.Tokens /// /// Represents a signature validation error. /// - public class SignatureValidationError : ValidationError + internal class SignatureValidationError : ValidationError { /// /// Initializes a new instance of the class. diff --git a/src/Microsoft.IdentityModel.Tokens/Validation/Results/Details/ValidationError.cs b/src/Microsoft.IdentityModel.Tokens/Validation/Results/Details/ValidationError.cs index 9bdacb9367..ad02f05994 100644 --- a/src/Microsoft.IdentityModel.Tokens/Validation/Results/Details/ValidationError.cs +++ b/src/Microsoft.IdentityModel.Tokens/Validation/Results/Details/ValidationError.cs @@ -188,7 +188,6 @@ internal Exception GetException(Type exceptionType, Exception? innerException) /// Logs the validation error. /// /// The to be used for logging. - [CLSCompliant(false)] public void Log(ILogger logger) { Logger.TokenValidationFailed(logger, FailureType.Name, MessageDetail.Message); diff --git a/src/Microsoft.IdentityModel.Tokens/Validation/Results/ValidatedToken.cs b/src/Microsoft.IdentityModel.Tokens/Validation/Results/ValidatedToken.cs index 39121e24af..ba4fe95fa4 100644 --- a/src/Microsoft.IdentityModel.Tokens/Validation/Results/ValidatedToken.cs +++ b/src/Microsoft.IdentityModel.Tokens/Validation/Results/ValidatedToken.cs @@ -28,7 +28,6 @@ internal class ValidatedToken( /// /// Logs the validation result. /// - [CLSCompliant(false)] public void Log(ILogger logger) => Logger.TokenValidationSucceeded( logger, ValidatedAudience ?? "none",