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
hi
https://docs.abp.io/en/abp/latest/Authorization#claims-principal-factory
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
PasswordSignInAsyncmethod of SignInManager<IdentityUser> class and GetTwoFactorEnabledAsync of UserManager<IdentityUser>