From 6b18ddacf2d530166fce8550607f76a3499cfea7 Mon Sep 17 00:00:00 2001 From: Aditya Mandaleeka Date: Mon, 31 Mar 2025 16:06:37 -0700 Subject: [PATCH] Re-enable audience validation --- src/eShop.ServiceDefaults/AuthenticationExtensions.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/eShop.ServiceDefaults/AuthenticationExtensions.cs b/src/eShop.ServiceDefaults/AuthenticationExtensions.cs index 738280a9e..052ba33bc 100644 --- a/src/eShop.ServiceDefaults/AuthenticationExtensions.cs +++ b/src/eShop.ServiceDefaults/AuthenticationExtensions.cs @@ -45,8 +45,6 @@ public static IServiceCollection AddDefaultAuthentication(this IHostApplicationB #else options.TokenValidationParameters.ValidIssuers = [identityUrl]; #endif - - options.TokenValidationParameters.ValidateAudience = false; }); services.AddAuthorization();