# Hangfire Dashboard Authorization not working

**URL:** <https://discuss.hangfire.io/t/hangfire-dashboard-authorization-not-working/6332>\
**Category:** question\
**Tags:** dashboard\
**Created:** [July 1, 2019, 8:53am UTC](https://discuss.hangfire.io/t/hangfire-dashboard-authorization-not-working/6332 "2019-07-01T08:53:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dudu\_B](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/dudu_b/32/1625_2.png) [@Dudu\_B](https://discuss.hangfire.io/u/Dudu_B)\
**Post date:** [July 1, 2019, 8:53am UTC](https://discuss.hangfire.io/t/hangfire-dashboard-authorization-not-working/6332/1 "2019-07-01T08:53:07Z")

</div>

Ive implemented IDashboardAuthorizationFilter interface like this:

public bool Authorize(Dashboard context)  
{  
var owinContext = new OwinContext(context.GetOwinEnviroment());  
return owinContext.Authentication.User.Identity.IsAuthenticated;  
}

and in the Startup.cs:  
app.UseHangFireDashboard("/hangfire", new DashboardOptions {  
Authorization = new [] {new AuthorizationFilter()}  
});

but the Server.User property in the owinContext is null.

---

<div class="post-metadata">

**Author:** ![cick0](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/cick0/32/1789_2.png) [@cick0](https://discuss.hangfire.io/u/cick0)\
**Post date:** [September 30, 2019, 11:40am UTC](https://discuss.hangfire.io/t/hangfire-dashboard-authorization-not-working/6332/2 "2019-09-30T11:40:27Z")

</div>

I’m experiencing the same with IdentityServer3. Even though I’m accessing as a logged-in user, the Request.User is null.
