Duplicate claims (type + value) emitted if different issuer #91
-
IdentityServer version7.1.0 .NET version.net 9 DescriptionWhen updating to 7.1.0 from 7.0.8 we started getting duplicate claims emitted in tokens. See DuendeSoftware/products#1546 (comment) for more information. The issuer used to not be taken into account when calling distinct on access token claims. Reproduction stepsAdd 2 duplicate claims to your authenticated principal that have distinct issuers. When The DefaultTokenService calls Expected behaviorEither a minor breaking change or it's fixed to go back to existing behaviour claims.Distinct(new ClaimComparer(new ClaimComparer.Options
{
IgnoreIssuer = true
})).ToList(); LogsNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Are you using the server-side sessions feature? |
Beta Was this translation helpful? Give feedback.
-
Your analysis is correct. Formerly it was a shortcoming in our code to not include the issuer and that was fixed. |
Beta Was this translation helpful? Give feedback.
Thanks for bringing this up. I added a note to the release notes: