IdentityServer4: Add Custom default Claim to Client Principal for Client_Credential Granttype
问题 I am using IdentityServer4 and I am trying to add a custom default claim to my CLIENT when the token is created. This is possible if i use the implicit flow and IProfileService like shown below. public class MyProfileService : IProfileService { public MyProfileService() { } public Task GetProfileDataAsync(ProfileDataRequestContext context) { var claims = new List<Claim> { new Claim("DemoClaimType", "DemoClaimValue") }; context.IssuedClaims = claims; return Task.FromResult(0); } public Task