Update on the injection of "HttpContext"

This commit is contained in:
Sébastien ANDRE
2023-08-11 16:19:00 +02:00
parent 778ee0b812
commit a27e4127dd
5 changed files with 19 additions and 18 deletions

View File

@@ -49,8 +49,6 @@ namespace skydiveLogs_api
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc(options => { options.EnableEndpointRouting = false; });
//.SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
services.AddHttpContextAccessor();
// JWT

View File

@@ -22,7 +22,7 @@
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.9" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.8" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.32.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.32.1" />
</ItemGroup>
<ItemGroup>