How to add authentication to a hanfire hosted by a windows service


I’m hosting hangfire in a windows service and I have the console up and running. Now I’d like to add authentication in a way that allows me to access the console remotely.

I tried the Hangfire.Dashboard.Authorization but I cant figure out how to ask for the user and password without adding MVC or a log of web infrasctructure to the project.

A simple basic authentication with the browser prompting for the user/pass will do.

Could anybody point me in the right direction or a working example?



You still need to web interface to send some information to the Hangfire when user is remotely accessing the computer. If you want to have browser prompting you still need a simple web page. HangFire comes with component can easily integrate with