Hello, I want to be able to customize the html code of the ConfirmationComponent, so this doesn't help.
Hello, is it possible to replace the ConfirmationComponent of “@abp/ng.theme.shared” using this method (https://abp.io/docs/latest/framework/ui/angular/component-replacement#how-to-replace-a-component)?
I cannot find the key to use in :
this.replaceableComponents.add({ component: YourNewRoleComponent, key: eIdentityComponents.Roles, });
Hello, thank you for your reply. However, I had to use the IServiceCollection.Replace
method instead of Dependency
attribute.
Here's my working code :
MyIdentitySessionDynamicClaimsPrincipalContributor.cs
public class MyIdentitySessionDynamicClaimsPrincipalContributor : IdentitySessionDynamicClaimsPrincipalContributor
{
public override Task ContributeAsync(AbpClaimsPrincipalContributorContext context)
{
...
}
}
MyModule.cs
public class MyModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
...
context.Services.Replace(
ServiceDescriptor.Transient<
IdentitySessionDynamicClaimsPrincipalContributor,
MyIdentitySessionDynamicClaimsPrincipalContributor
>());
}
}
Hello, can I replace IdentitySessionDynamicClaimsPrincipalContributor
with my own implementation? If so, how can I do it?