Base solution for your next web application
Open Closed

Hangfire Dashboard #6514


User avatar
0
firnas created

Can you please let me know how to navigate from the angular UI to hangfire dashboard?


7 Answer(s)
  • User Avatar
    0
    andmattia created

    @firnas you need to enable the dashboard on C# and go to http://host:port/!#/hangfire

    //Enable it to use HangFire dashboard (uncomment only if it's enabled in clayWebModule)
                app.UseHangfireDashboard("/hangfire", new DashboardOptions
                {
                    Authorization = new[] { new AbpHangfireAuthorizationFilter(AppPermissions.Pages_Administration_HangfireDashboard) }
                });
    

    on web module file Startup.cs

  • User Avatar
    0
    firnas created

    I have enabled this. But i cannot navigate to the dashboard.

    http://localhost:22742/hangfire

    It says that site cannot be reached. However if i use the below line,

    app.UseHangfireDashboard();

    the dashboard loads. How can i authorize a user into the dashboard?

  • User Avatar
    0
    andmattia created

    Yes you need to update the user permission to allow to access to the dashboard.

    Any error in console?

  • User Avatar
    0
    firnas created

    no erros in console. the Admin user alreday has the permission Pages_Administration_HangfireDashboard.

    So when i directly go to the below link,

    http://localhost:22742/hangfire

    how does the user be authenticated to the dashboard since there is no prompt for any username and password?

  • User Avatar
    0
    andmattia created

    You must to be loged in the main portal to access to Dashboard

  • User Avatar
    0
    firnas created

    Is there a link to the hangfire url from the angular application?

  • User Avatar
    0
    firnas created

    I found the below link which solved my problem,

    https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1971

    Hope it will help anyone who is facing my issue.