Hi, anyone can help us on this query?
Hi @maliming, which version did you check? it does not work with version 5.2.2.
Could you check and let me know? Thank you.
Hi @maliming, I have tried and it does not work, the claim is not returned in the claim list:
public class CustomClaimsPrincipalContributor : IAbpClaimsPrincipalContributor, ITransientDependency
{
public Task ContributeAsync(AbpClaimsPrincipalContributorContext context)
{
var identity = context.ClaimsPrincipal.Identities.FirstOrDefault();
if (identity != null)
{
// these 2 claims not found
var uniqueNameClaim = identity.FindFirst("unique_name");
var preferredUserNameClaim = identity.FindFirst("preferred_username");
identity.TryRemoveClaim(uniqueNameClaim);
identity.TryRemoveClaim(preferredUserNameClaim);
}
return Task.CompletedTask;
}
}
Thank @maliming, I managed to replace the file.
Hi maliming,
Thanks for your reply, may I know what are the steps to replace the jquery-extensions.js?
Thanks, we will check the provided link.
Hi @maliming, Thanks for your prompt reply. if the CMS admin function is available in Angular UI, can guide me how to enable it?
Hi @maliming, thanks, I realized that I had tried to add Cms.Kit module into an existing module template instead of application template.
This issue does not happens in application template.