Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ protected ValidationParameters(ValidationParameters other)
_signatureValidator = other.SignatureValidator;
TimeProvider = other.TimeProvider;
TryAllDecryptionKeys = other.TryAllDecryptionKeys;
TryAllIssuerSigningKeys = other.TryAllIssuerSigningKeys;
TokenDecryptionKeyResolver = other.TokenDecryptionKeyResolver;
_tokenDecryptionKeys = other.TokenDecryptionKeys;
TokenReplayCache = other.TokenReplayCache;
Expand Down Expand Up @@ -530,6 +531,7 @@ public TokenReplayValidationDelegate TokenReplayValidator
/// all available keys will be tried.
/// </summary>
/// <remarks>Default is false.</remarks>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the remarks to state that the default value is now true.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

[DefaultValue(true)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs to be set in the empty constructor.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@brentschmaltz brentschmaltz Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to set the value on the property as if a new ctor is created it may be missed.
It would be a good idea to set the other properties: LogTokenId, TryAllDecryptionKeys
Add the attribute [DefaultValue(...)] as some of the bool properties as missing.

public bool TryAllIssuerSigningKeys { get; set; } = true;

public bool TryAllIssuerSigningKeys { get; set; }

/// <summary>
Expand Down Expand Up @@ -642,6 +644,7 @@ internal set
/// Gets or sets a boolean that controls if the actor claim should be validated.
/// </summary>
/// <remarks>Default value is false.</remarks>
[DefaultValue(false)]
public bool ValidateActor { get; set; }
}
}
Expand Down