ok, You can remove the built-in contributors.
And replace the IdentityUserManager as well.
services.TryAddScoped<YourIdentityUserManager>();
services.TryAddScoped(typeof(UserManager<IdentityUser>), provider => provider.GetService(typeof(YourIdentityUserManager)))
services.TryAddScoped(typeof(IdentityUserManager), provider => provider.GetService(typeof(YourIdentityUserManager)))
hi
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
var env = context.GetEnvironment();
var options = context.ServiceProvider.GetRequiredService<IOptions<AbpClaimsPrincipalFactoryOptions>>();
hi
Can you try to inject the IOptions<AbpClaimsPrincipalFactoryOptions> to check the values?
Thanks.
We will add our IdentitySessionDynamicClaimsPrincipalContributor if your module depends the AbpIdentityProDomainModule
typeof(YourContributor)
hi
Please set a breakpoint to check the DynamicContributors.
services.PostConfigure<AbpClaimsPrincipalFactoryOptions>(options =>
{
options.DynamicContributors.AddIfNotContains(xxx);
});
hi
If the local production environment cannot reproduce the problem using a remote server, it means that there is a problem with Azure Deployment Slots.
I'm not familiar with Azure. Can you change the running environment for testing? For example, Azure App Service
hi Fabio.Zinesi
Can you share the steps and code to reproduce in a new template project?
Thanks
hi
I tried to put IdentityDynamicClaimsPrincipalContributor and IdentityDynamicClaimsPrincipalContributorCache files in my IdentityService Domain project and added the code you provided in the Domain module.cs file
Can you try to add all these files to the Domain?
Also, share the code you applied.