Skip to content
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

Regression tests: Algorithm #2934

Merged
merged 4 commits into from
Oct 24, 2024
Merged

Regression tests: Algorithm #2934

merged 4 commits into from
Oct 24, 2024

Conversation

iNinja
Copy link
Contributor

@iNinja iNinja commented Oct 23, 2024

Regression tests: Algorithm

  • Added AlgorithmValidationError
  • Refactored error creation in ValidateSignature to surface the invalid algorithm as part of the error
  • Added regression/comparison tests for algorithm validation scenarios

Resolves #2913

Part of #2711

@iNinja iNinja requested a review from a team as a code owner October 23, 2024 16:20
Copy link
Contributor

@kllysng kllysng left a comment

Choose a reason for hiding this comment

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

Thanks, @iNinja

@iNinja iNinja merged commit 4a28a69 into dev Oct 24, 2024
5 checks passed
typeof(SecurityTokenInvalidAlgorithmException),
new StackFrame(true));
{
if (result.UnwrapError() is AlgorithmValidationError algorithmValidationError)
Copy link
Member

Choose a reason for hiding this comment

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

Curious as to why we need to recreate the AlgorithmValidationError?

@iNinja iNinja deleted the iinglese/regression-tests-algorithm branch November 15, 2024 12:12
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.

Add comparison tests for Algorithm validation in new validation model
5 participants