temporary disable hangfire auth
All checks were successful
Build Docker Images / build-and-push (push) Successful in 1m23s
All checks were successful
Build Docker Images / build-and-push (push) Successful in 1m23s
This commit is contained in:
@@ -6,6 +6,10 @@ 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>();
|
||||
@@ -16,5 +20,6 @@ public class HangfireAuthorizationFilter: IDashboardAsyncAuthorizationFilter
|
||||
|
||||
var isAuthenticated = httpContext.User.Identity?.IsAuthenticated ?? false;
|
||||
return Task.FromResult(isAuthenticated);
|
||||
*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user