Skip to content

Breaking change in IAuthorizationPolicyProvider #14834

Closed
@BrennanConroy

Description

@BrennanConroy

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

IAuthorizationPolicyProvider


Issue metadata

  • Issue type: breaking-change

Metadata

Metadata

Assignees

Labels

breaking-changeIndicates a .NET Core breaking change

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions