-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
breaking-changeIndicates a .NET Core breaking changeIndicates a .NET Core breaking change
Description
Breaking change in IAuthorizationPolicyProvider
As part of dotnet/aspnetcore#9759 we added a new method to IAuthorizationPolicyProvider.GetFallbackPolicyAsync which is the policy that will be used by the authorization middleware when no policy is specified.
Version introduced
3.0
Old behavior
Implementations of IAuthorizationPolicyProvider didn't require a GetFallbackPolicyAsync method.
New behavior
Implementations of IAuthorizationPolicyProvider require a GetFallbackPolicyAsync method.
Reason for change
We needed a new method for the new AuthorizationMiddleware to use when no policy is specified.
Recommended action
Add GetFallbackPolicyAsync method to your implementations of IAuthorizationPolicyProvider.
Category
ASP.NET Core
Affected APIs
Issue metadata
- Issue type: breaking-change
Metadata
Metadata
Assignees
Labels
breaking-changeIndicates a .NET Core breaking changeIndicates a .NET Core breaking change