diff --git a/samples/BlazorWebAssemblySample/Server/Controllers/HomeController.cs b/samples/BlazorWebAssemblySample/Server/Controllers/HomeController.cs index d8607c1..ef88c83 100644 --- a/samples/BlazorWebAssemblySample/Server/Controllers/HomeController.cs +++ b/samples/BlazorWebAssemblySample/Server/Controllers/HomeController.cs @@ -28,7 +28,7 @@ public string AttribRouteTest(string tenantId) } [HttpGet("BasicTest")] - [CasbinAuthorize(nameof(BasicTest), nameof(System.Net.Http.HttpMethod.Get))] + [CasbinAuthorize(nameof(BasicTest), "GET")] public string BasicTest() { return "You have passed the authentication test."; diff --git a/samples/WebApplicationWithEfcoreSample/Startup.cs b/samples/WebApplicationWithEfcoreSample/Startup.cs index e7cceab..3723e1f 100644 --- a/samples/WebApplicationWithEfcoreSample/Startup.cs +++ b/samples/WebApplicationWithEfcoreSample/Startup.cs @@ -10,7 +10,7 @@ using System.IO; using System.Security.Claims; using Casbin.AspNetCore.Authorization.Transformers; -using Casbin.Adapter.EFCore; +using Casbin.Persist.Adapter.EFCore; using Casbin; namespace WebApplicationSample diff --git a/samples/WebApplicationWithEfcoreSample/WebApplicationWithEfcoreSample.csproj b/samples/WebApplicationWithEfcoreSample/WebApplicationWithEfcoreSample.csproj index 354d463..2b21432 100644 --- a/samples/WebApplicationWithEfcoreSample/WebApplicationWithEfcoreSample.csproj +++ b/samples/WebApplicationWithEfcoreSample/WebApplicationWithEfcoreSample.csproj @@ -16,7 +16,7 @@ - + diff --git a/src/Casbin.AspNetCore.Abstractions/Casbin.AspNetCore.Abstractions.csproj b/src/Casbin.AspNetCore.Abstractions/Casbin.AspNetCore.Abstractions.csproj index 394da45..e75d857 100644 --- a/src/Casbin.AspNetCore.Abstractions/Casbin.AspNetCore.Abstractions.csproj +++ b/src/Casbin.AspNetCore.Abstractions/Casbin.AspNetCore.Abstractions.csproj @@ -23,7 +23,7 @@ - + diff --git a/src/Casbin.AspNetCore.Core/DefaultEnforcerProvider.cs b/src/Casbin.AspNetCore.Core/DefaultEnforcerProvider.cs index b0858f9..75d10a0 100644 --- a/src/Casbin.AspNetCore.Core/DefaultEnforcerProvider.cs +++ b/src/Casbin.AspNetCore.Core/DefaultEnforcerProvider.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Casbin.Model; -using Casbin.Adapter.File; +using Casbin.Persist.Adapter.File; using Casbin.Persist; namespace Casbin.AspNetCore.Authorization