Skip to content

Commit

Permalink
fix: Incorrect version references and lowercase errors (#65)
Browse files Browse the repository at this point in the history
* fix: Fix two outdated package references

Signed-off-by: Tan <[email protected]>

* fix: Fix an incorrect lowercase

Signed-off-by: Tan <[email protected]>

---------

Signed-off-by: Tan <[email protected]>
  • Loading branch information
Tanyuu authored Sep 6, 2023
1 parent 9e72fed commit 10bb352
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down
2 changes: 1 addition & 1 deletion samples/WebApplicationWithEfcoreSample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Casbin.NET.Adapter.EFCore" Version="1.8.1-build.40.preview.e9625de" />
<PackageReference Include="Casbin.NET.Adapter.EFCore" Version="2.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="6.0.5" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
<PackageReference Include="Casbin.NET" Version="2.0.0-preview.5" />
<PackageReference Include="Casbin.NET" Version="2.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Casbin.AspNetCore.Core/DefaultEnforcerProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10bb352

Please sign in to comment.