From 1ea49c45146548f4c62c44440b80d1a7bc8b1bda Mon Sep 17 00:00:00 2001 From: hello Date: Thu, 4 Apr 2024 06:28:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E8=B5=84=E6=BA=90=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/helloshop/resource-based-authorization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notes/helloshop/resource-based-authorization.md b/notes/helloshop/resource-based-authorization.md index 0e47262..af546fa 100644 --- a/notes/helloshop/resource-based-authorization.md +++ b/notes/helloshop/resource-based-authorization.md @@ -1,10 +1,10 @@ -# 基于资源的授权的最佳实践 +# 基于资源授权的最佳实践 ## 在 Identity Service 中提供权限检查接口 ```csharp [HttpHead] -public async Task>> CheckPermission(string permissionName, string? resourceType = null, string? resourceId = null +public async Task CheckPermission(string permissionName, string? resourceType = null, string? resourceId = null { if (await permissionChecker.IsGrantedAsync(permissionName, resourceType, resourceId)) {