Activities of "liangshiwei"

Can you share a test project with me? I will check it.

Abp permissions use only Read, Update, Delete and Create, however when a user has access to Read, it allows all users to same read, I am looking a solution for:

you can consider to add a custom data filter:

https://abp.io/docs/latest/framework/infrastructure/data-filtering

Question 1: Is there any way I can deploy Auth and Web Api Host in EU regions with no change to the MVC application as No data is saved in MVC, I want my MVC application to detect if the User is in from EU or Non-EU, if EU then consume EU Auth and WebApiHost, if non-EU then user Australian Auth and WebApiHost server?

You can add a middleware to update the remote service URLs dynamically

public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
    var app = context.GetApplicationBuilder();
    var env = context.GetEnvironment();

    app.UseForwardedHeaders();


    app.Use(async (httpContext, next) =>
    {
        // get user region
        var cultureName = CultureInfo.CurrentCulture.Name;
        // check is user from European Union
        var isEu = cultureName == "de-DE" || cultureName == "en-GB" || cultureName == "fr-FR" || cultureName == "it-IT" || cultureName == "es-ES" || cultureName == "nl-NL" || cultureName == "pl-PL" || cultureName == "pt-PT" || cultureName == "ro-RO" || cultureName == "sv-SE" || cultureName == "cs-CZ" || cultureName == "da-DK" || cultureName == "fi-FI" || cultureName == "el-GR" || cultureName == "hu-HU" || cultureName == "lt-LT" || cultureName == "lv-LV" || cultureName == "mt-MT" || cultureName == "sk-SK" || cultureName == "sl-SI" || cultureName == "bg-BG" || cultureName == "hr-HR" || cultureName == "et-EE" || cultureName == "ga-IE";
        var options = httpContext.RequestServices.GetRequiredService<IOptions<AbpRemoteServiceOptions>>();
        if (isEu)
        {
            options.Value.RemoteServices.Default!.BaseUrl = "EuropeBaseUrl...";
        }
        else
        {
            options.Value.RemoteServices.Default!.BaseUrl = "OtherBaseUrl...";
        }
        await next();
    });

    ..........

}

Hi,

I can't reproduce the problem, could you please share a test project with me? I will check it.

Hi,

Could you please share a test project with me? I will check it Thanks.

Hi,

External users are no different from users; you can use SignInManager.TwoFactorySignInAsync without problems.

didn't worked , because the result.Succeeded was equal - false.

How about others? .RequiresTwoFactor, IsLockedOut, or IsNotAllowed. can you also provider logs

Add to all services and auth server

Sorry I didn't get it

: )

Hi,

Yes, you can override the Login and Register. use same logic check if it's an external login

Showing 291 to 300 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 04, 2025, 06:41