Activities of "maliming"

hi

  • ABP Framework version: vX.X.X
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

hi

Is websocket enabled on your server? you can try to rule out environmental problems.

Answer

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);
    }
}

Done

hi

liming.ma@volosoft.com

https://docs.abp.io/en/abp/4.4/Modules/IdentityServer#abpidentityserverbuilderoptions

public override void PreConfigureServices(ServiceConfigurationContext context)
{
	PreConfigure<IIdentityServerBuilder>(builder =>
	{
    	builder.AddSigningCredential(...);	
	});
}

hi

The AllowAnonymous attribute only take effect in the application service method or class.

You can consider using ILanguageTextRepository in the Domain instead of application services.

Showing 9151 to 9160 of 10645 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20