hi
You can replace the FakeCurrentPrincipalAccessor
in ConfigureServices
method.
https://github.com/abpframework/abp/blob/dev/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Auditing/AuditIntegrationServiceTestController_Tests.cs#L28
Create a new class by copying the code form AbpValidateClientPostLogoutRedirectUri
Add your class to event handles.
builder.RemoveEventHandler(OpenIddictServerHandlers.Session.ValidateClientPostLogoutRedirectUri.Descriptor);
builder.RemoveEventHandler(AbpValidateClientPostLogoutRedirectUri.Descriptor);
builder.AddEventHandler(MyAbpValidateClientPostLogoutRedirectUri.Descriptor);
The StaticPermissionDefinitionStore
is ISingletonDependency
You can inject it and use it anywhere. Use your logic to control PermissionDefinitions
hi
You can troubleshoot by creating a new template project and deploying it to the production environment to see if the problem exists.
If the problem doesn't exist,please compare the code or share your project with me.
Thanks
hi
Let me check the issue remotely. Please send a mail. liming.ma@volosoft.com
I think these code are fine. : )
hi
The MultiTenancyMiddlewareErrorPageBuilder is used to handle inactive and non-existent tenants.
It will respond to an error page by default, you can change it if you want, eg: only output the error log and continue ASP NET Core's request pipeline.
Configure<AbpAspNetCoreMultiTenancyOptions>(options =>
{
options.MultiTenancyMiddlewareErrorPageBuilder = async (context, exception) =>
{
// Handle the exception.
// Return true to stop the pipeline, false to continue.
return true;
};
});
hi
You can add a cookies authentication to your HttpApi.Host
project.
https://support.abp.io/QA/Questions/5733#answer-3a0db883-c466-1f48-be6b-ec834293db61
Thanks. I am checking right now.