From fe0e5be913e49258f5f898f55781a9c2fb0d37e9 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Thu, 3 Jul 2014 10:06:24 -0700 Subject: [PATCH] Fix IList to IEnumerable change. --- .../AuthenticationHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNet.Server.WebListener/AuthenticationHandler.cs b/src/Microsoft.AspNet.Server.WebListener/AuthenticationHandler.cs index a6a8afe19f..e86419c1c5 100644 --- a/src/Microsoft.AspNet.Server.WebListener/AuthenticationHandler.cs +++ b/src/Microsoft.AspNet.Server.WebListener/AuthenticationHandler.cs @@ -38,7 +38,7 @@ namespace Microsoft.AspNet.Server.WebListener private AuthenticationTypes _customChallenges; internal AuthenticationHandler(RequestContext requestContext) - { + { _requestContext = requestContext; _authTypes = requestContext.AuthenticationChallenges; _customChallenges = AuthenticationTypes.None; @@ -79,7 +79,7 @@ namespace Microsoft.AspNet.Server.WebListener { var authString = authType.ToString(); // Not including any auth types means it's a blanket challenge for any auth type. - if (context.AuthenticationTypes == null || context.AuthenticationTypes.Count == 0 + if (context.AuthenticationTypes == null || !context.AuthenticationTypes.Any() || context.AuthenticationTypes.Contains(authString, StringComparer.Ordinal)) { _customChallenges |= authType;