From b69fd68978b2e0bb43cffde1271cde0e94eede46 Mon Sep 17 00:00:00 2001 From: Brent Schmaltz Date: Fri, 10 Jan 2025 11:08:54 -0800 Subject: [PATCH] Switch from ValueTask to Task --- .../AadIssuerValidator/AadIssuerValidator.Internal.cs | 2 +- .../InternalAPI.Unshipped.txt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.IdentityModel.Validators/AadIssuerValidator/AadIssuerValidator.Internal.cs b/src/Microsoft.IdentityModel.Validators/AadIssuerValidator/AadIssuerValidator.Internal.cs index 9a4ef8f107..983a2e8ddd 100644 --- a/src/Microsoft.IdentityModel.Validators/AadIssuerValidator/AadIssuerValidator.Internal.cs +++ b/src/Microsoft.IdentityModel.Validators/AadIssuerValidator/AadIssuerValidator.Internal.cs @@ -26,7 +26,7 @@ public partial class AadIssuerValidator /// /// An that contains either the issuer that was validated or an error. /// An EXACT match is required. - internal async ValueTask> ValidateIssuerAsync( + internal async Task> ValidateIssuerAsync( string issuer, SecurityToken securityToken, ValidationParameters validationParameters, diff --git a/src/Microsoft.IdentityModel.Validators/InternalAPI.Unshipped.txt b/src/Microsoft.IdentityModel.Validators/InternalAPI.Unshipped.txt index 8b73b85ed1..e2e00e8728 100644 --- a/src/Microsoft.IdentityModel.Validators/InternalAPI.Unshipped.txt +++ b/src/Microsoft.IdentityModel.Validators/InternalAPI.Unshipped.txt @@ -1,6 +1,5 @@ const Microsoft.IdentityModel.Validators.AadIssuerValidatorConstants.CloudInstanceNameKey = "cloud_instance_name" -> string -Microsoft.IdentityModel.Validators.AadIssuerValidator.Validate(string issuer, Microsoft.IdentityModel.Tokens.SecurityToken securityToken, Microsoft.IdentityModel.Tokens.ValidationParameters validationParameters, Microsoft.IdentityModel.Tokens.CallContext context) -> string -Microsoft.IdentityModel.Validators.AadIssuerValidator.ValidateIssuerAsync(string issuer, Microsoft.IdentityModel.Tokens.SecurityToken securityToken, Microsoft.IdentityModel.Tokens.ValidationParameters validationParameters, Microsoft.IdentityModel.Tokens.CallContext callContext, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.ValueTask> +Microsoft.IdentityModel.Validators.AadIssuerValidator.ValidateIssuerAsync(string issuer, Microsoft.IdentityModel.Tokens.SecurityToken securityToken, Microsoft.IdentityModel.Tokens.ValidationParameters validationParameters, Microsoft.IdentityModel.Tokens.CallContext callContext, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task> Microsoft.IdentityModel.Validators.AadValidationParametersExtension static Microsoft.IdentityModel.Validators.AadValidationParametersExtension.EnableAadSigningKeyIssuerValidation(this Microsoft.IdentityModel.Tokens.ValidationParameters validationParameters) -> void static Microsoft.IdentityModel.Validators.AadValidationParametersExtension.EnableEntraIdSigningKeyCloudInstanceValidation(this Microsoft.IdentityModel.Tokens.ValidationParameters validationParameters) -> void