Making dashboard access rules also apply for local requests

I am writing a .NET Core application using Azure AD.

I am trying to ensure that the user is a member of a certain Azure group in order to get access to the dashboard. This is a huge pain.

It would make testing a lot easier if /hangfire on local host had the same restrictions as on a remote server. This way I dont have to deploy to a remote server for each attempt.

Thanks in advance

Soeren