using Hangfire.Dashboard;
namespace ECMJobRunner.WebCron
{
///
/// Authorization filter that allows all users to access Hangfire Dashboard
/// WARNING: This is for development only! Use proper authentication in production.
///
public class AllowAllDashboardAuthorizationFilter : IDashboardAuthorizationFilter
{
///
/// Determines whether the current user is authorized to access the Hangfire Dashboard.
///
/// The Hangfire dashboard context containing request information.
/// Always returns true to allow all users (development only).
public bool Authorize(DashboardContext context)
{
// Allow all users - FOR DEVELOPMENT ONLY
return true;
}
}
}