Skip to content

Conversation

@FuPingFranco
Copy link
Contributor

@FuPingFranco FuPingFranco commented Jul 16, 2024

Remove Delegate Checks in Multiple Validators and Prevents Null Setting of Delegates.

Description

  • Removed delegate checks from our default token type, lifetime and token replay validation.
  • Moved away from using TokenValidationParameters in favor of the new ValidationParameters.
  • Updated unit tests and added new tests for ValidationParameters class.
  • Fixed minor inconsistencies on the code.

@FuPingFranco FuPingFranco requested a review from a team as a code owner July 16, 2024 22:49
@FuPingFranco FuPingFranco changed the title Removed Delegate Checks from Token Type Validation. Removed Delegate Checks from Multiple Validators and Prevents Null Setting of Delegates Jul 24, 2024
@FuPingFranco FuPingFranco changed the title Removed Delegate Checks from Multiple Validators and Prevents Null Setting of Delegates Remove Delegate Checks in Multiple Validators and Prevents Null Setting of Delegates Jul 24, 2024
@FuPingFranco FuPingFranco requested a review from iNinja July 25, 2024 01:43
Copy link
Contributor

@iNinja iNinja left a comment

Choose a reason for hiding this comment

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

Minor comments, other than that LGTM.

@FuPingFranco FuPingFranco merged commit bb9a6d9 into dev Jul 27, 2024
}
set
{
_audienceValidator = value ?? throw new ArgumentNullException(nameof(value), "AudienceValidator cannot be set as null.");
Copy link
Contributor

Choose a reason for hiding this comment

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

consider to use nameof in exception message
nameof(ValidationParameters.AudienceValidator)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants