Activities of "maliming"

hi

Can you create a new template project and reproduce the problem? (You can call application in unit test)

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>
Showing 8391 to 8400 of 11539 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 December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.