hi
Copy the code and debug it.
https://github.com/abpframework/abp/blob/rel-5.0/framework/src/Volo.Abp.HangFire/Volo/Abp/Hangfire/AbpHangfireAuthorizationFilter.cs
hi
You can try to download the Account.Pro
adn Identity.Pro
modules to check the code.
How about this?
UseHangfireDashboard
can't be next of UseConfiguredEndpoints
.
app.UseAuthentication();
if (MultiTenancyConsts.IsEnabled)
{
app.UseMultiTenancy();
}
app.UseAuthorization();
app.UseHangfireDashboard();
//app.UseHangfireDashboard("/hangfire",new DashboardOptions
//{
// AsyncAuthorization = new[] { new AbpHangfireAuthorizationFilter(requiredPermissionName: "hangfirePerm") }
//});
app.UseSwagger();
app.UseAbpSwaggerUI(options =>
{
options.SwaggerEndpoint("/swagger/v1/swagger.json", "TiberVendor API");
var configuration = context.GetConfiguration();
options.OAuthClientId(configuration["AuthServer:SwaggerClientId"]);
options.OAuthClientSecret(configuration["AuthServer:SwaggerClientSecret"]);
});
``
The moment I install the .NET 6.0 SDK (or VS2022) the project is not building anymore (without any change to the project).
Can you share a simple project with me? liming.ma@volosoft.com
hi
Please share the full code of your Startup class.
hi There are some changes: https://docs.abp.io/en/abp/5.0/Background-Jobs-Hangfire#abphangfireauthorizationfilter
https://github.com/abpframework/abp/pull/11081/
hi
I will check and fix that. Thanks