hi
You can enable the 2fa after logging into the CLI, and we will support it in the future,
hi
Maybe we can make DeleteBehavior
configurable.
hi
Can you share a screenshot of your solution structure?
hi
hi
Is websocket enabled on your server? you can try to rule out environmental problems.
ErrorDescription: RequiresTwoFactor
Hi Can you try to disable the 2FA of your account?
https://account.abp.io/
hi
Can you share some screenshot and logs?
hi
You can refer to this Console App.
https://github.com/abpframework/abp/blob/dev/templates/console/src/MyCompanyName.MyProjectName/Program.cs#L55
hi
Try this
public override void ConfigureServices(ServiceConfigurationContext context)
{
var hostingEnvironment = context.Services.GetHostingEnvironment();
var configuration = context.Services.GetConfiguration();
context.Services.AddSignalR(options =>
{
options.AddFilter<AbpSignalRFilter>();
}).AddAzureSignalR(options =>
{
options.ServerStickyMode = Microsoft.Azure.SignalR.ServerStickyMode.Required;
options.ConnectionString = "Endpoint=.....;";
});
}
public class AbpSignalRFilter : IHubFilter
{
public async ValueTask<object> InvokeMethodAsync(HubInvocationContext invocationContext, Func<HubInvocationContext, ValueTask<object>> next)
{
var currentPrincipalAccessor = invocationContext.ServiceProvider.GetRequiredService<ICurrentPrincipalAccessor>();
using (currentPrincipalAccessor.Change(invocationContext.Context.User))
{
return await next(invocationContext);
}
}
// Optional method
public Task OnConnectedAsync(HubLifetimeContext context, Func<HubLifetimeContext, Task> next)
{
return next(context);
}
// Optional method
public Task OnDisconnectedAsync(
HubLifetimeContext context, Exception exception, Func<HubLifetimeContext, Exception, Task> next)
{
return next(context, exception);
}
}