Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Incorrect version references and lowercase errors #65

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading