[Blazor][Fixes #22679] Flow the Resource to the authorization service in AuthorizeRouteView
AuthorizeRouteView combines AuthorizeView and RouteView on one abstraction for convenience, but it was missing a Resource parameter to capture and flow the resource to pass on to the AuthorizationService. This PR adds a new Resource parameter and makes sure that the value is passed to the authorization service so that it is available for the authorization handlers in a policy.
显示
- src/Components/Authorization/ref/Microsoft.AspNetCore.Components.Authorization.netcoreapp.cs 2 个添加, 0 个删除...crosoft.AspNetCore.Components.Authorization.netcoreapp.cs
- src/Components/Authorization/src/AuthorizeRouteView.cs 7 个添加, 0 个删除src/Components/Authorization/src/AuthorizeRouteView.cs
- src/Components/Authorization/test/AuthorizeRouteViewTest.cs 72 个添加, 0 个删除src/Components/Authorization/test/AuthorizeRouteViewTest.cs
想要评论请 注册 或 登录