When logging types of issued claims, duplicates are logged. #197
Nwoaah
started this conversation in
Feature requests
Replies: 1 comment
-
|
It's perfectly possible, as you mention, for users or ClaimsPrincipals to have multiple claim values for a given claim type. As a side effect, the UserInfoResponseGenerator mentions the same claim type more than once. The development team is considering combining these claim types into a single mention (e.g., |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When the profile service fetches a user with multiple claims of the same type, the logging process duplicates them at the 'information' level.
https://github.com/DuendeSoftware/products/blob/97927d92196d2386c95e60fd0a4e72e27c300cd2/identity-server/src/IdentityServer/ResponseHandling/Default/UserInfoResponseGenerator.cs#L95
Log example:
[Duende.IdentityServer.ResponseHandling.UserInfoResponseGenerator] Profile service returned the following claim types: sub d:tntnm d:mid d:cid d:ver d:sec preferred_username name d:unuid d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obr d:obrBeta Was this translation helpful? Give feedback.
All reactions