Hangfire Dashboard - Unauthorized response.
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
I was not able to configure the AbpHangfireAuthorizationFilter on the UseAbpHangfireDashboard method.
I read the documentation about the Dashboard setup, I followed all the steps described there but I'm still getting 401 when trying to access to the '/hangfire' path.
Reproduction Steps
- Download the code sample.
- Configure the database connection.
- Run migrations and launch the application.
- Login through swagger (using the default abp's admin account)
- By having a session logged in(having the corresponding session cookies properly configured), go to the
{api_url}/hangfire - You will get a 401 - Unauthorized error.
Question: Is that the expected flow to get access to the dashboard?
Expected behavior
By following the steps described above, the dashboard should be available for the current logged user.
Actual behavior
Is redirecting to a 401 Unauthorized page.
Regression?
No response
Known Workarounds
No response
Version
8.1.1
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
Separate Auth Server
Operation System
macOS
Other information
I've been inspecting the AbpHangfireAuthorizationFilter (and also created a custom Authorization filter) and the information of the user's information is not available in the HttpContext
hi
Your app only uses JwtBeareras authentication method. Please refer to qa links below:
https://support.abp.io/QA/Questions/5167/Hangfire-Authorization-Problem https://support.abp.io/QA/Questions/3199/Hangfire-Dashboard-Authorization-is-not-working
Hi, do you know if this issue is still open?