You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
The resource should be taken by IPolicyEvaluator.AuthorizeAsync() and passed into the IAuthorizationService instead of always passing in the HttpContext.
This is a regression from 1.0 in MVC where there's no longer any way to access the AuthorizationFilterContext from a policy requirement. Previously the context.Resource was set to the AuthorizationFilterContext.
See line: https://github.com/aspnet/Security/blob/dev/src/Microsoft.AspNetCore.Authorization.Policy/PolicyEvaluator.cs#L80
The resource should be taken by IPolicyEvaluator.AuthorizeAsync() and passed into the IAuthorizationService instead of always passing in the HttpContext.
This is a regression from 1.0 in MVC where there's no longer any way to access the AuthorizationFilterContext from a policy requirement. Previously the context.Resource was set to the AuthorizationFilterContext.
Fix is #1328
The text was updated successfully, but these errors were encountered: