Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change in AddAuthorization(o =>) overload lives in a different assembly #386

Open
HaoK opened this issue Sep 12, 2019 · 0 comments
Assignees
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

Comments

@HaoK
Copy link
Member

HaoK commented Sep 12, 2019

Breaking change in AddAuthorization(o =>) overload lives in a different assembly

We renamed the core AddAuthorization methods that used to live in Microsoft.AspNetCore.Authorization to be AddAuthorizationCore, the old AddAuthorization methods still exist, but are in the Microsoft.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 using AddAuthorizationCore

Version introduced

3.0

Old behavior

AddAuthorization methods existed in Microsoft.AspNetCore.Authorization

New behavior

AddAuthorization methods exist in Microsoft.AspNetCore.Authorization.Policy, AddAuthorizationCore is the new name for the old methods

Reason 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 use AddAuthorizationCore instead

Category

ASP.NET

Affected APIs

AddAuthorization(Action<AuthorizationOptions>)


Issue metadata

@HaoK HaoK added Breaking change 3.0.0 Announcements related to ASP.NET Core 3.0 labels Sep 12, 2019
@HaoK HaoK added this to the 3.0.0 milestone Sep 12, 2019
@aspnet aspnet locked and limited conversation to collaborators Sep 27, 2019
@scottaddie scottaddie added the Documented The breaking change has been published to the .NET Core docs label Dec 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

3 participants