.net10 and few fixes
Some checks failed
Build Docker Images / build-and-push (push) Failing after 11s

This commit is contained in:
2025-11-21 16:37:47 +01:00
parent a631cd6b3e
commit 2b7ed3e451
11 changed files with 142 additions and 82 deletions

View File

@@ -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);
*/
}
}