diff --git a/ECMJobRunner.WebCron/AllowAllDashboardAuthorizationFilter.cs b/ECMJobRunner.WebCron/AllowAllDashboardAuthorizationFilter.cs new file mode 100644 index 0000000..38a0616 --- /dev/null +++ b/ECMJobRunner.WebCron/AllowAllDashboardAuthorizationFilter.cs @@ -0,0 +1,17 @@ +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 + { + public bool Authorize(DashboardContext context) + { + // Allow all users - FOR DEVELOPMENT ONLY + return true; + } + } +}