Description
Deprecated Authentication property from HttpContext removed in ASP.NET Core
As part of dotnet/aspnetcore#6504 we've removed the deprecated Authentication property on HttpContext. The Authentication property has been deprecated since 2.0 and a migration guide was published to migrate code using this deprecated property to the new replacement APIs. In addition, we have also removed all of the remaining unused classes/apis related to the old 1.x authentication stack in dotnet/aspnetcore@d7a7c65.
Please discuss this change on dotnet/aspnetcore#6533
Version introduced
3.0
Old behavior
These APIs were available since 1.0 and were deprecated in 2.0.
New behavior
These APIs have been removed in 3.0
Reason for change
The old 1.0 APIs have been replaced by extension methods in the Microsoft.AspNetCore.Authentication namespace. The new API is documented here.
Recommended action
The migration guide is available here.
Category
- ASP.NET Core
Affected APIs
// Classes
Microsoft.AspNetCore.Http.Authentication.AuthenticationManager
Microsoft.AspNetCore.Http.Authentication.AuthenticateInfo
Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
Microsoft.AspNetCore.Http.Features.Authentication.AuthenticateContext
Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext
Microsoft.AspNetCore.Http.Features.Authentication.ChallengeBehavior
Microsoft.AspNetCore.Http.Features.Authentication.DescribeSchemesContext
Microsoft.AspNetCore.Http.Features.Authentication.IAuthenticationHandler
Microsoft.AspNetCore.Http.Features.Authentication.SignInContext
Microsoft.AspNetCore.Http.Features.Authentication.SignOutContext
// Property
Microsoft.AspNetCore.Http.Features.Authentication.IHttpAuthenticationFeature.Handler property
Issue metadata
- Issue type: breaking-change