Activities of "maliming"

ok, I will check this asap.

Please try to format your code. It is unreadable. Thanks

Answer

hi

https://docs.abp.io/en/abp/latest/Authorization#claims-principal-factory

hi

hi

Please share the full steps to reproduce. Thanks.

hi

Please create a same name app-pro project and copy MyProjectNameTenantDatabaseMigrationHandler to your Dm.DynamicTemplate.IdentityServer project.

hi

I think you can change to Host instead of disabling the filter.

using (CurrentTenant.Change(null))


// disable TenantFilter
using (_dataFilter.Disable())
{
    // read tenant from username (unique for all tenants, by overwritten RegisterModel)
    // if we login with disabled IMultiTenant DataFilter, we have issues with claims
    // therefore we read tenant from username, then switch the current tenant and login

    await ReplaceEmailToUsernameOfInputIfNeeds();
    tenantId = await _extendedOrganizationUnitAppService.GetTenantByUsername(LoginInput.UserNameOrEmailAddress);
}

btw, can you share tenantId = await _extendedOrganizationUnitAppService.GetTenantByUsername(LoginInput.UserNameOrEmailAddress); as well?

hi

I can't reproduce your problem,Can you share full steps?

hi

  1. You can customize the code to change the 2faof all users under the role when the role is changed.
  2. Or override the PasswordSignInAsyncmethod of SignInManager<IdentityUser> class and GetTwoFactorEnabledAsync of UserManager<IdentityUser>

hi

There is a property UserSecurityStamp of IdentityUser and SecurityStampValidator.

When the important properties of the user(username, email, password, etc) are changed, this value will change,

You can set SecurityStampValidatorOptions.ValidationInterval Property to 3 second or other values.

Showing 7471 to 7480 of 10618 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 10, 2025, 06:30