Open Closed

Multiple claims of the same type are not included when using the IAbpClaimsPrincipalContributor #1056


1
michael.sudnik created
  • ABP Framework version: v4.2.1
  • UI type: MVC
  • DB provider: MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

The AbpUserClaimsPrincipalFactory is using the ClaimsIdentityExtensions.AddIfNotContains extension method, which is not adding any claims of the same type.

https://github.com/abpframework/abp/blob/c67dd7f25e61a81221259d5a9d5e9e7786e58aa1/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpUserClaimsPrincipalFactory.cs#L75

What is the best way to replace or override this factory?


2 Answer(s)
  • 0
    maliming created
    Support Team

    hi @michael.sudnik

    I will improve this feature, You can override AbpUserClaimsPrincipalFactory service for now.

    https://github.com/abpframework/abp/issues/8115

  • 0
    ServiceBot created
    Support Team

    This question has been automatically marked as stale because it has not had recent activity.