Breaking change in AddAuthorization(o =>) overload lives in a different assembly #386
Labels
3.0.0
Announcements related to ASP.NET Core 3.0
Announcement
Breaking change
Documented
The breaking change has been published to the .NET Core docs
Migrated
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Breaking change in
AddAuthorization(o =>)
overload lives in a different assemblyWe renamed the core
AddAuthorization
methods that used to live inMicrosoft.AspNetCore.Authorization
to beAddAuthorizationCore
, the oldAddAuthorization
methods still exist, but are in theMicrosoft.AspNetCore.Authorization.Policy
package instead. Apps that are using both should see no impact, but apps that were not using the policy package will need to switch to usingAddAuthorizationCore
Version introduced
3.0
Old behavior
AddAuthorization
methods existed inMicrosoft.AspNetCore.Authorization
New behavior
AddAuthorization
methods exist inMicrosoft.AspNetCore.Authorization.Policy
,AddAuthorizationCore
is the new name for the old methodsReason for change
We wanted the better
AddAuthorization
name to add all of the common services needed for authorization, so we decided to take over the old name in 3.0..Recommended action
Either add a reference to
Microsoft.AspNetCore.Authorization.Policy
or useAddAuthorizationCore
insteadCategory
ASP.NET
Affected APIs
AddAuthorization(Action<AuthorizationOptions>)
Issue metadata
AddAuthorization(o =>)
overload lives in a different assembly dotnet/docs#14525.The text was updated successfully, but these errors were encountered: