diff --git a/src/Microsoft.AspNet.Security/Infrastructure/HttpContextExtensions.cs b/src/Microsoft.AspNet.Security/Infrastructure/HttpContextExtensions.cs index a46ef4079c..3f0be6f882 100644 --- a/src/Microsoft.AspNet.Security/Infrastructure/HttpContextExtensions.cs +++ b/src/Microsoft.AspNet.Security/Infrastructure/HttpContextExtensions.cs @@ -6,13 +6,13 @@ namespace Microsoft.AspNet.Security.Infrastructure { internal static class HttpContextExtensions { - internal static IHttpAuthentication GetAuthentication(this HttpContext context) + internal static IHttpAuthenticationFeature GetAuthentication(this HttpContext context) { - var auth = context.GetFeature(); + var auth = context.GetFeature(); if (auth == null) { - auth = new DefaultHttpAuthentication(); - context.SetFeature(auth); + auth = new HttpAuthenticationFeature(); + context.SetFeature(auth); } return auth; }