.net10 and few fixes
Some checks failed
Build Docker Images / build-and-push (push) Failing after 11s
Some checks failed
Build Docker Images / build-and-push (push) Failing after 11s
This commit is contained in:
@@ -11,12 +11,10 @@
|
||||
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.21" />
|
||||
<PackageReference Include="Hangfire.Core" Version="1.8.21" />
|
||||
<PackageReference Include="Hangfire.SqlServer" Version="1.8.21" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0-rc.1.25451.107" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.0-rc.1.25451.107">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.3.2" />
|
||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.12.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.0-rc.1.25451.107" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -18,8 +18,6 @@ builder.Services.AddScoped<ProductSyncService>();
|
||||
|
||||
builder.Services.AddHttpClient();
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
||||
// Start Hangfire section
|
||||
builder.Services.AddHangfire(configuration => configuration
|
||||
@@ -110,11 +108,6 @@ using (var scope = app.Services.CreateScope())
|
||||
}
|
||||
}
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseCors("AllowAll");
|
||||
|
||||
@@ -6,20 +6,15 @@ public class HangfireAuthorizationFilter: IDashboardAsyncAuthorizationFilter
|
||||
{
|
||||
public Task<bool> AuthorizeAsync(DashboardContext context)
|
||||
{
|
||||
// just for now
|
||||
// TODO: add auth
|
||||
return Task.FromResult(true);
|
||||
/*
|
||||
var httpContext = context.GetHttpContext();
|
||||
|
||||
|
||||
var env = httpContext.RequestServices.GetService<IWebHostEnvironment>();
|
||||
if (env.IsDevelopment())
|
||||
if (env != null && env.IsDevelopment())
|
||||
{
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
|
||||
var isAuthenticated = httpContext.User.Identity?.IsAuthenticated ?? false;
|
||||
|
||||
var isAuthenticated = httpContext.User.Identity?.IsAuthenticated ?? false;
|
||||
return Task.FromResult(isAuthenticated);
|
||||
*/
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Server=localhost,1433;Database=bimai;User Id=sa;Password=BimAI_Dev_Pass_2024!;TrustServerCertificate=True;Encrypt=False",
|
||||
"HangfireConnection": "Server=localhost,1433;Database=bimai;User Id=sa;Password=BimAI_Dev_Pass_2024!;TrustServerCertificate=True;Encrypt=False"
|
||||
"DefaultConnection": "Server=localhost,1433;Database=bimai;User Id=sa;Password=BimAI_SA_2025x@;TrustServerCertificate=True;Encrypt=False",
|
||||
"HangfireConnection": "Server=localhost,1433;Database=bimai;User Id=sa;Password=BimAI_SA_2025x@;TrustServerCertificate=True;Encrypt=False"
|
||||
},
|
||||
"E5_CRM": {
|
||||
"ApiKey": "7e50a8a5-f01f-4fbc-8c1b-59f3fc474bb5"
|
||||
},
|
||||
"GoogleAuth": {
|
||||
"ClientId": "1057234319293-r17ocvs40chitgoj4s83nrfd5409rlc4.apps.googleusercontent.com"
|
||||
"ClientId": "896226687615-rhmqk06t1hvll1hh2gtje2u6nbadtras.apps.googleusercontent.com"
|
||||
},
|
||||
"JwtSettings": {
|
||||
"SecretKey": "BimAISuperSecretKeyThatMustBeAtLeast32CharactersLong123456789"
|
||||
|
||||
Reference in New Issue
Block a user