-
Notifications
You must be signed in to change notification settings - Fork 413
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
Validate IssuerSigningKey: Refactor to use ValidationParameters over TVP #2764
Conversation
src/Microsoft.IdentityModel.Tokens/Validation/Validators.IssuerSigningKey.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.IdentityModel.Tokens/Validation/Validators.IssuerSigningKey.cs
Show resolved
Hide resolved
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.
Just left a question, other than that LGTM
src/Microsoft.IdentityModel.Tokens/Validation/Validators.IssuerSigningKey.cs
Outdated
Show resolved
Hide resolved
public IssuerSigningKeyValidatorDelegate IssuerSigningKeyValidator | ||
{ | ||
get => _issuerSigningKeyValidator; | ||
set => _issuerSigningKeyValidator = value ?? throw new ArgumentNullException(nameof(value), "IssuerSigningKeyValidator cannot be set as null."); |
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.
Consider creating a log message.
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.
We have a number of similar scenarios. I will definitely look into generalising them and reusing a log message or creating a new one as part of this stream.
…rSigningKey.cs Co-authored-by: sruthikeerthi <73967733+sruke@users.noreply.github.com>
Validate IssuerSigningKey: Refactor to use ValidationParameters over TVP
Description
Replaced use of TokenValidationParameters with ValidationParameters inside ValidateIssuerSecurityKey and updated tests accordingly.
Removed version of the method that takes BaseConfiguration as it is not used, and the exposed delegate does not contain it either.
Part of #2711