hi
The application service will try to get all permissions when you call the its method, even if the above error does not occur, it will be an infinite loop.
I guess the GetSomeData method is async. The Define method of PermissionDefinitionProvider is sync. So there is async over sync problem.
You can get dynamic permissions through other ways. Sync methods are preferred.
Or call async method by AsyncHelper
var resutl = AsyncHelper.RunSync(() => serviceProvider.GetRequiredService<ISchedulerFactory>().GetScheduler())
hi
Have you tried the steps on this document?
https://docs.microsoft.com/en-us/aspnet/core/signalr/redis-backplane?view=aspnetcore-5.0
Configure ISignalRServerBuilder in module.
public override void PreConfigureServices(ServiceConfigurationContext context)
{
context.Services.PreConfigure<ISignalRServerBuilder>(builder =>
{
builder.AddStackExchangeRedis("connectionString", options =>
{
options.Configuration.ChannelPrefix = "MyApp";
});
});
}
hi @Denis
You can check the Dynamic-CSharp-API-Clients, It has built-in authentication.
https://docs.abp.io/en/abp/latest/API/Dynamic-CSharp-API-Clients
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityModelAuthenticationService.cs#L22 https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Http.Client.IdentityModel/Volo/Abp/Http/Client/IdentityModel/IdentityModelRemoteServiceHttpClientAuthenticator.cs#L21 https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Http.Client.IdentityModel.Web/Volo/Abp/Http/Client/IdentityModel/Web/HttpContextIdentityModelRemoteServiceHttpClientAuthenticator.cs#L45
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/test/MyCompanyName.MyProjectName.HttpApi.Client.ConsoleTestApp/appsettings.json#L7 https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/test/MyCompanyName.MyProjectName.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs#L19
hi
I agree with you. I will give feedback to the team.
requiresNew (bool): Set true to ignore the surrounding unit of work and start a new UOW with the provided options. Default value is false. If it is false and there is a surrounding UOW, Begin method doesn't actually begin a new UOW, but silently participates to the existing UOW.
https://docs.abp.io/en/abp/4.3/Unit-Of-Work#begin-a-new-unit-of-work
hi
ABP SUITE version: vX.X.X
Steps to reproduce the issue:
Can you share some code of your event handler?
hi
Don't call application service in event handler. You can call the domain service that without the Authorization.
hi
We will evaluate this feature in 4.4.
hi
I think you can try to override the HeaderViewComponent of Lepton.
abp\lepton-theme\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton\Themes\Lepton\Components\Header\MainNavbarBrandViewComponent.cs
abp\lepton-theme\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton\Themes\Lepton\Components\Header\Default.cshtml