Applying IHttpAuthenticationFeature renaming

This commit is contained in:
Sebastien Ros 2014-05-05 17:01:57 -07:00
parent 05b091ee66
commit 14205d1708
1 changed files with 4 additions and 4 deletions

View File

@ -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<IHttpAuthentication>();
var auth = context.GetFeature<IHttpAuthenticationFeature>();
if (auth == null)
{
auth = new DefaultHttpAuthentication();
context.SetFeature<IHttpAuthentication>(auth);
auth = new HttpAuthenticationFeature();
context.SetFeature<IHttpAuthenticationFeature>(auth);
}
return auth;
}