Applying IHttpAuthenticationFeature renaming
This commit is contained in:
parent
05b091ee66
commit
14205d1708
|
|
@ -6,13 +6,13 @@ namespace Microsoft.AspNet.Security.Infrastructure
|
||||||
{
|
{
|
||||||
internal static class HttpContextExtensions
|
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)
|
if (auth == null)
|
||||||
{
|
{
|
||||||
auth = new DefaultHttpAuthentication();
|
auth = new HttpAuthenticationFeature();
|
||||||
context.SetFeature<IHttpAuthentication>(auth);
|
context.SetFeature<IHttpAuthenticationFeature>(auth);
|
||||||
}
|
}
|
||||||
return auth;
|
return auth;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue