Skip to content
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
4 changes: 2 additions & 2 deletions src/Fga.Net.AspNetCore/Authorization/FgaCheckDecorator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public FgaCheckDecorator(OpenFgaClient auth0FgaApi)
/// <param name="request"></param>
/// <param name="ct"></param>
/// <returns></returns>
public virtual Task<BatchCheckResponse> BatchCheck(List<ClientCheckRequest> request, CancellationToken ct) => _auth0FgaApi.BatchCheck(request, cancellationToken: ct);
public virtual Task<ClientBatchCheckClientResponse> BatchCheck(List<ClientCheckRequest> request, CancellationToken ct) => _auth0FgaApi.BatchCheck(request, cancellationToken: ct);
}

/// <summary>
Expand All @@ -58,5 +58,5 @@ public interface IFgaCheckDecorator
/// <param name="request"></param>
/// <param name="ct"></param>
/// <returns></returns>
Task<BatchCheckResponse> BatchCheck(List<ClientCheckRequest> request, CancellationToken ct);
Task<ClientBatchCheckClientResponse> BatchCheck(List<ClientCheckRequest> request, CancellationToken ct);
}
6 changes: 3 additions & 3 deletions src/Fga.Net/Fga.Net.DependencyInjection.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@

<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.25" PrivateAssets="All" />
<PackageReference Include="OpenFga.Sdk" Version="0.5.1" />
<PackageReference Include="OpenFga.Sdk" Version="0.8.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.9" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.9" />
</ItemGroup>

<Import Project="../../Package.Build.props" />
Expand Down
4 changes: 2 additions & 2 deletions tests/Fga.Net.Tests/Middleware/WebAppFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public async Task InitializeAsync()
{
var entry = res.First();
return entry.User == $"user:{MockJwtConfiguration.DefaultUser}"
? new BatchCheckResponse() { Responses = [new(true, entry)] }
: new BatchCheckResponse() { Responses = [new(false, entry)] };
? new ClientBatchCheckClientResponse() { Responses = [new(true, entry)] }
: new ClientBatchCheckClientResponse() { Responses = [new(false, entry)] };
});

AlbaHost = await Alba.AlbaHost.For<Program>(builder =>
Expand Down
Loading