Hurry Up, Ends March 14!

Activities of "maliming"

Answer

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

We will release new version soon, It will be resolved.

hi

Can you share a screenshot of your solution structure?

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

Showing 7621 to 7630 of 9123 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08