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;
}
}
Hi, I want to remove the "unique_name" and "preferred_username" claims in the access token but could not figure out how to do it, I have tried to remove all the claims in Api Resources, but these claims still exist.
any idea how to remove it?
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?
Hi, we have upgraded our solution to Abp 5.2.2 and got 1 issue when accessing the TenantSwitchModal, we are not allowed to add 'unsafe-eval' into script-src due to security test, below is our CSP:
default-src 'self'; script-src 'self'; frame-ancestors 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;
Could you please help us take a look and advise?
Thanks, we will check the provided link.
Hi, we are having issue when upgrade our project from ABP 3.3.2 to 5.2.2, it does not work on IE browser, I know IE browser has ended support but one group of our users still require it for now.
Could you please advise us how to fix this issue?
Hi, we have upgraded our solution to Abp 5.2.2 and got 1 issue when accessing the TenantSwitchModal, we are not allowed to add 'unsafe-eval' into script-src due to security test, below is our CSP:
default-src 'self'; script-src 'self'; frame-ancestors 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;
Could you please help us take a look and advise?
Hi @maliming, Thanks for your prompt reply. if the CMS admin function is available in Angular UI, can guide me how to enable it?