Hi Could you share a simple project to reproduce the problem? thanks
Hi,
Can I check it remotely? shiwei.liang@volosoft.com. please email me.
HI,
Can I check it remotely? shiwei.liang@volosoft.com
You can deploy API as a sub appliation.
See https://devblogs.microsoft.com/aspnet/part-1-of-3-creating-sub-projects-in-iis-with-web-application-projects/
@suraj.kumbhar
Could you open a new question? thanks.
Can I check it remotely? shiwei.liang@volosoft.com
Hi,
What version are you using?
Hi,
I find the problem, see : https://github.com/abpframework/abp/pull/7814/files
For now , you need to :
public class MyAbpSecurityStampValidator : AbpSecurityStampValidator
{
protected ITenantConfigurationProvider TenantConfigurationProvider { get; }
protected ICurrentTenant CurrentTenant { get; }
public MyAbpSecurityStampValidator(
IOptions<SecurityStampValidatorOptions> options,
SignInManager<IdentityUser> signInManager,
ISystemClock systemClock,
ILoggerFactory loggerFactory,
ITenantConfigurationProvider tenantConfigurationProvider,
ICurrentTenant currentTenant) : base(options, signInManager, systemClock, loggerFactory)
{
TenantConfigurationProvider = tenantConfigurationProvider;
CurrentTenant = currentTenant;
}
[UnitOfWork]
public override async Task ValidateAsync(CookieValidatePrincipalContext context)
{
var tenant = await TenantConfigurationProvider.GetAsync(saveResolveResult: false);
using (CurrentTenant.Change(tenant?.Id, tenant?.Name))
{
await base.ValidateAsync(context);
}
}
}
context.Services.AddScoped<MyAbpSecurityStampValidator>();
context.Services.AddScoped(typeof(SecurityStampValidator<IdentityUser>), provider => provider.GetService(typeof(MyAbpSecurityStampValidator)));
context.Services.AddScoped(typeof(ISecurityStampValidator), provider => provider.GetService(typeof(MyAbpSecurityStampValidator)));
Can I check it remotely? shiwei.liang@volosoft.com