Browse Source

Add "sub" to the list of claims whose type is checked by ValidateFrontchannelIdentityTokenWellknownClaims/ValidateBackchannelIdentityTokenWellknownClaims

pull/1755/head
Kévin Chalet 3 years ago
parent
commit
453f577590
  1. 6
      src/OpenIddict.Client/OpenIddictClientHandlers.cs

6
src/OpenIddict.Client/OpenIddictClientHandlers.cs

@ -1611,7 +1611,8 @@ public static partial class OpenIddictClientHandlers
{
// The following JWT claims MUST be represented as unique strings.
{
Key: Claims.AuthenticationContextReference or Claims.AuthorizedParty or Claims.Issuer or Claims.Nonce,
Key: Claims.AuthenticationContextReference or Claims.AuthorizedParty or
Claims.Issuer or Claims.Nonce or Claims.Subject,
Value: List<Claim> values
} => values.Count is 1 && values[0].ValueType is ClaimValueTypes.String,
@ -2935,7 +2936,8 @@ public static partial class OpenIddictClientHandlers
{
// The following JWT claims MUST be represented as unique strings.
{
Key: Claims.AuthenticationContextReference or Claims.AuthorizedParty or Claims.Issuer or Claims.Nonce,
Key: Claims.AuthenticationContextReference or Claims.AuthorizedParty or
Claims.Issuer or Claims.Nonce or Claims.Subject,
Value: List<Claim> values
} => values.Count is 1 && values[0].ValueType is ClaimValueTypes.String,

Loading…
Cancel
Save