-
Notifications
You must be signed in to change notification settings - Fork 433
Fix ValidationParameters Inconsistencies #3173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
| /// all available keys will be tried. | ||
| /// </summary> | ||
| /// <remarks>Default is false.</remarks> | ||
| [DefaultValue(true)] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
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;
| /// If the IssuerSigningKeyResolver is unable to resolve the key when validating the signature of the SecurityToken, | ||
| /// all available keys will be tried. | ||
| /// </summary> | ||
| /// <remarks>Default is false.</remarks> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
Few unit tests are failing that require investigation. |
|
@omidmloo we are working on a rather large change at the moment to get the API's for the new model completed. We may want to wait until this PR is in, before additional cleanup. |
Fix ValidationParameters Inconsistencies
Summary
This PR fixes inconsistencies in
ValidationParametersby ensuring properties are copied correctly fromTokenValidationParameters.Description
TryAllIssuerSigningKeysproperty was not being copied in theValidationParameters(ValidationParameters other)constructor.TryAllIssuerSigningKeys.TryAllIssuerSigningKeyswasfalseby default, whereas it wastruein the current model. This has been aligned accordingly.ValidateActorinValidationParametersfor consistency.Fixes #3131