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,
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,
I already finished this , you can expect it in the next studio update at the earliest