# \#authorization

**URL:** https://discuss.hangfire.io/tag/authorization/14.md

[Latest](https://discuss.hangfire.io/latest.md) · [Categories](https://discuss.hangfire.io/categories.md) · [Tags](https://discuss.hangfire.io/tags.md)

---

## [Hangfire Dashboard Authentication with Azure AD?](https://discuss.hangfire.io/t/hangfire-dashboard-authentication-with-azure-ad/10486)

<div class="topic-metadata">

**Author:** [@saisudheer](https://discuss.hangfire.io/u/saisudheer)\
**Replies:** 1\
**Last updated:** [February 11, 2024, 3:06pm UTC](https://discuss.hangfire.io/t/hangfire-dashboard-authentication-with-azure-ad/10486 "2024-02-11T15:06:57Z")

</div>

How to Implement Hangfire Dashboard Authentication with Azure AD in .net core 6

---

## [Getting a 403 when accessing on a server](https://discuss.hangfire.io/t/getting-a-403-when-accessing-on-a-server/9250)

<div class="topic-metadata">

**Author:** [@iamandymcinnes](https://discuss.hangfire.io/u/iamandymcinnes)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 10:31am UTC](https://discuss.hangfire.io/t/getting-a-403-when-accessing-on-a-server/9250 "2022-06-30T10:31:40Z")

</div>

Hi, I setup an oidc implementation ages ago for a hangfire dashboard I have, but never really used it. Anyway I’ve picked up again, upgraded the project to .net 6 and reworked a few bits and bobs, but I’m having a weird…

---

## [System.Security.Cryptography.CryptographicException while accessing Hangfire dashboard locally](https://discuss.hangfire.io/t/system-security-cryptography-cryptographicexception-while-accessing-hangfire-dashboard-locally/8840)

<div class="topic-metadata">

**Author:** [@najjaf.shuja](https://discuss.hangfire.io/u/najjaf.shuja)\
**Replies:** 0\
**Last updated:** [December 8, 2021, 12:42pm UTC](https://discuss.hangfire.io/t/system-security-cryptography-cryptographicexception-while-accessing-hangfire-dashboard-locally/8840 "2021-12-08T12:42:34Z")

</div>

Hi, I am facing strange error while accessing Handfire dashboard locally. Complete exception is below, { “ClassName”: “System.Security.Cryptography.CryptographicException”, “Message”: “An error occurred while trying …

---

## [How best to use Hangfire with API that requires bearer tokens](https://discuss.hangfire.io/t/how-best-to-use-hangfire-with-api-that-requires-bearer-tokens/8438)

<div class="topic-metadata">

**Author:** [@RichK](https://discuss.hangfire.io/u/RichK)\
**Replies:** 0\
**Last updated:** [May 7, 2021, 3:12pm UTC](https://discuss.hangfire.io/t/how-best-to-use-hangfire-with-api-that-requires-bearer-tokens/8438 "2021-05-07T15:12:13Z")

</div>

Please note this is nothing to do with the Hangfire dashboard. I have inherited a product that already uses Hangfire and it works to some extent but there must be a better way of doing what I’m about to describe. The p…

---

## [Dashboard is not working on production mode](https://discuss.hangfire.io/t/dashboard-is-not-working-on-production-mode/6270)

<div class="topic-metadata">

**Author:** [@Abdus\_Salam\_Azad](https://discuss.hangfire.io/u/Abdus_Salam_Azad)\
**Replies:** 1\
**Last updated:** [January 21, 2021, 12:46pm UTC](https://discuss.hangfire.io/t/dashboard-is-not-working-on-production-mode/6270 "2021-01-21T12:46:45Z")

</div>

My project is in angular and asp.net core. I am also getting this issue on production mode. But dashboard is working fine on my localhost. I also used IDashboardAuthorizationFilter for filtering. But on my public bool …

---

## [Filter jobs shown in dashboard?](https://discuss.hangfire.io/t/filter-jobs-shown-in-dashboard/7370)

<div class="topic-metadata">

**Author:** [@adrianbegi](https://discuss.hangfire.io/u/adrianbegi)\
**Replies:** 0\
**Last updated:** [May 16, 2020, 1:24am UTC](https://discuss.hangfire.io/t/filter-jobs-shown-in-dashboard/7370 "2020-05-16T01:24:42Z")

</div>

Has anyone come across a solution for filtering jobs shown in the dashboard by user? I have a scenario where jobs are specific to users and when they go to the dashboard I would like them to see only the jobs that belong…

---

## [Hooking up usermanager authorization](https://discuss.hangfire.io/t/hooking-up-usermanager-authorization/4955)

<div class="topic-metadata">

**Author:** [@aous](https://discuss.hangfire.io/u/aous)\
**Replies:** 1\
**Last updated:** [March 17, 2020, 9:02pm UTC](https://discuss.hangfire.io/t/hooking-up-usermanager-authorization/4955 "2020-03-17T21:02:40Z")

</div>

Hi, is there a way to use ASP.net Core’s UserManager to authorize the Dashboard access? I tried injecting the user manager but it is disposed of by the time it is run inside the authorizing method. I tried the followi…

---

## [Dashboard Authorization obsolete](https://discuss.hangfire.io/t/dashboard-authorization-obsolete/2867)

<div class="topic-metadata">

**Author:** [@mma](https://discuss.hangfire.io/u/mma)\
**Replies:** 10\
**Last updated:** [January 17, 2020, 7:09pm UTC](https://discuss.hangfire.io/t/dashboard-authorization-obsolete/2867 "2020-01-17T19:09:36Z")

</div>

I have setup Dashboard Authorization as suggested in the documentation (http://docs.hangfire.io/en/latest/configuration/using-dashboard.html#configuring-authorization) However, I'm getting the following warnings: Warni…

---

## [Exposing Hangfire Dashboard hosted by Windows Service to public URL with Authentication](https://discuss.hangfire.io/t/exposing-hangfire-dashboard-hosted-by-windows-service-to-public-url-with-authentication/4566)

<div class="topic-metadata">

**Author:** [@Terry\_Aney](https://discuss.hangfire.io/u/Terry_Aney)\
**Replies:** 3\
**Last updated:** [September 10, 2019, 4:21pm UTC](https://discuss.hangfire.io/t/exposing-hangfire-dashboard-hosted-by-windows-service-to-public-url-with-authentication/4566 "2019-09-10T16:21:20Z")

</div>

Hi, I am hosting Hangfire in a Windows service and currently I can only access the dashboard via internal IP/address via following code snippets: In service Start method… var options = new StartOptions(); options.Urls.…

---

## [How to Set /Change HF Service Account](https://discuss.hangfire.io/t/how-to-set-change-hf-service-account/5818)

<div class="topic-metadata">

**Author:** [@sam\_User](https://discuss.hangfire.io/u/sam_User)\
**Replies:** 0\
**Last updated:** [February 4, 2019, 2:03pm UTC](https://discuss.hangfire.io/t/how-to-set-change-hf-service-account/5818 "2019-02-04T14:03:24Z")

</div>

It appears that some of my method calls from HF fail because of the account HF is running under but I am not able to find how to set HF service account to “Network Service” as an example. Any ideas? My method works fine …

---

## [Default authentication challenge not working in aspnetcore](https://discuss.hangfire.io/t/default-authentication-challenge-not-working-in-aspnetcore/4233)

<div class="topic-metadata">

**Author:** [@MikeK](https://discuss.hangfire.io/u/MikeK)\
**Replies:** 1\
**Last updated:** [April 5, 2018, 1:17pm UTC](https://discuss.hangfire.io/t/default-authentication-challenge-not-working-in-aspnetcore/4233 "2018-04-05T13:17:57Z")

</div>

Using hangfire version: 1.6.17 I have successfully setup hangifire on aspnetcore 2.0 I added authorization by using: app.UseHangfireDashboard("/jobs", new DashboardOptions { Authorization = new\[\] { new HangfireAuthori…

---

## [Dashboard Auth for VB.Net](https://discuss.hangfire.io/t/dashboard-auth-for-vb-net/2552)

<div class="topic-metadata">

**Author:** [@Apk07](https://discuss.hangfire.io/u/Apk07)\
**Replies:** 4\
**Last updated:** [March 31, 2018, 2:26am UTC](https://discuss.hangfire.io/t/dashboard-auth-for-vb-net/2552 "2018-03-31T02:26:08Z")

</div>

I’m trying to get basic dashboard authorization working in my MVC VB.Net app. I just want to be able to add one user “admin” and a basic password “123”. I’ve tried various methods from here and nothing has worked so far …

---

## [Hangfire.Dashboard.Authorization](https://discuss.hangfire.io/t/hangfire-dashboard-authorization/2352)

<div class="topic-metadata">

**Author:** [@simons](https://discuss.hangfire.io/u/simons)\
**Replies:** 4\
**Last updated:** [March 28, 2018, 8:53pm UTC](https://discuss.hangfire.io/t/hangfire-dashboard-authorization/2352 "2018-03-28T20:53:15Z")

</div>

Here is my code for authorization. I am using Hangfire.Dashboard.Authorization. However it doesn't work and when navigating to the dashboard I am met with a blank screen. If authorization is left out, then I can naviga…

---

## [AuthorizationFilter](https://discuss.hangfire.io/t/authorizationfilter/3349)

<div class="topic-metadata">

**Author:** [@staninik](https://discuss.hangfire.io/u/staninik)\
**Replies:** 0\
**Last updated:** [May 23, 2017, 7:36am UTC](https://discuss.hangfire.io/t/authorizationfilter/3349 "2017-05-23T07:36:45Z")

</div>

Hello, i have an ASP.NET MVC Project and i use hangfire. I need to make security so that only users in role "Admin" can see the dashboard. When my implementation of IDashboardAuthorizationFilter returns false I see only…

---

## [Empty dashboard with 1.6.1](https://discuss.hangfire.io/t/empty-dashboard-with-1-6-1/2255)

<div class="topic-metadata">

**Author:** [@William\_Faulk](https://discuss.hangfire.io/u/William_Faulk)\
**Replies:** 1\
**Last updated:** [January 27, 2017, 8:39pm UTC](https://discuss.hangfire.io/t/empty-dashboard-with-1-6-1/2255 "2017-01-27T20:39:32Z")

</div>

I have a custom dashboard authorization filter from 1.5.9 which uses IAuthorizationFilter and then checks the user role for a specific group membership. I’m using Hangfire with a self-hosted Owin API web service and a s…

---

## [AuthorizationFilters](https://discuss.hangfire.io/t/authorizationfilters/2391)

<div class="topic-metadata">

**Author:** [@mma](https://discuss.hangfire.io/u/mma)\
**Replies:** 0\
**Last updated:** [September 2, 2016, 7:51pm UTC](https://discuss.hangfire.io/t/authorizationfilters/2391 "2016-09-02T19:51:17Z")

</div>

just upgraded from 1.59 to 1.64 I get two related obsolete messaged related to Authorization. In: public static void ConfigureHangfire(IAppBuilder app) I use: app.UseHangfireDashboard("/hangfire", new DashboardOptions {…

---

## [Hangfire dashboard authorization in Azure WorkerRole OR self hosted console application](https://discuss.hangfire.io/t/hangfire-dashboard-authorization-in-azure-workerrole-or-self-hosted-console-application/1693)

<div class="topic-metadata">

**Author:** [@Yogesh\_Verma](https://discuss.hangfire.io/u/Yogesh_Verma)\
**Replies:** 1\
**Last updated:** [January 21, 2016, 4:54am UTC](https://discuss.hangfire.io/t/hangfire-dashboard-authorization-in-azure-workerrole-or-self-hosted-console-application/1693 "2016-01-21T04:54:29Z")

</div>

It is very recent that I have introduced to Hangfire, and I must say it is awesome. I am working on an application, wherein I am hosting hangfire in Azure worker role. Everything works perfect; the hangfire configurati…

---

## [Dashboard - Validate AntiforgeryToken](https://discuss.hangfire.io/t/dashboard-validate-antiforgerytoken/1651)

<div class="topic-metadata">

**Author:** [@romil7](https://discuss.hangfire.io/u/romil7)\
**Replies:** 0\
**Last updated:** [December 22, 2015, 12:27pm UTC](https://discuss.hangfire.io/t/dashboard-validate-antiforgerytoken/1651 "2015-12-22T12:27:46Z")

</div>

How can I safe guard the POST actions in the HangFire dashboard from request forgery? I am using Asp.net Identity and I have implemented IAuthorizationFilter. public bool Authorize(IDictionary owinEnvironment){}

---

## [Dashboard Access with windows authentication](https://discuss.hangfire.io/t/dashboard-access-with-windows-authentication/294)

<div class="topic-metadata">

**Author:** [@dohsan](https://discuss.hangfire.io/u/dohsan)\
**Replies:** 1\
**Last updated:** [October 30, 2015, 8:04am UTC](https://discuss.hangfire.io/t/dashboard-access-with-windows-authentication/294 "2015-10-30T08:04:09Z")

</div>

After having issues accessing the dashboard, I found in the user guide that access by default is only for local requests http://docs.hangfire.io/en/latest/users-guide/deployment-to-production/configuring-authorization.…

---

## [Install Dashboard](https://discuss.hangfire.io/t/install-dashboard/494)

<div class="topic-metadata">

**Author:** [@kkchan](https://discuss.hangfire.io/u/kkchan)\
**Replies:** 1\
**Last updated:** [January 9, 2015, 12:33pm UTC](https://discuss.hangfire.io/t/install-dashboard/494 "2015-01-09T12:33:16Z")

</div>

Hi I am using .NET 4 framework.I have installed Hangfire (.NET 4.0) package, but I can't find Hangfire.Dashboard.Authorization package from nuget (.NET 2.0 nor .NET4.0). Please advice.

---

## [Dashboard Authentication - Basic Auth Prompt keeps popping up](https://discuss.hangfire.io/t/dashboard-authentication-basic-auth-prompt-keeps-popping-up/647)

<div class="topic-metadata">

**Author:** [@dmazz5572](https://discuss.hangfire.io/u/dmazz5572)\
**Replies:** 0\
**Last updated:** [February 2, 2015, 9:38pm UTC](https://discuss.hangfire.io/t/dashboard-authentication-basic-auth-prompt-keeps-popping-up/647 "2015-02-02T21:38:42Z")

</div>

We have implemented hangfire in an internal (OWIN) application. I have read the docs about using Authorization Filters to enable dashboard access from non local machines. I have created a custom Authorization Filter w…

---

## [How can hangfire dashboard gets the authorization header per request](https://discuss.hangfire.io/t/how-can-hangfire-dashboard-gets-the-authorization-header-per-request/709)

<div class="topic-metadata">

**Author:** [@reggieboyYEAH](https://discuss.hangfire.io/u/reggieboyYEAH)\
**Replies:** 3\
**Last updated:** [February 25, 2015, 2:35pm UTC](https://discuss.hangfire.io/t/how-can-hangfire-dashboard-gets-the-authorization-header-per-request/709 "2015-02-25T14:35:11Z")

</div>

I'm trying to secure the dashboard via claims authentication. I have a separate auth server that issue claims. app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions() { }); …
