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

Algorithm validation: Remove exceptions #2697

Closed
wants to merge 16 commits into from

Conversation

FuPingFranco
Copy link
Contributor

Algorithm validation: Remove exceptions

Description

  • Implemented new (internal momentarily) method for algorithm validation which replaces exception throwing with a return of the new AlgorithmValidationResult containing the exception information.
  • Added tests around all the previous cases.

@FuPingFranco FuPingFranco requested a review from a team as a code owner July 10, 2024 21:23
FuPingFranco and others added 2 commits July 10, 2024 14:42
…ValidationResultTests.cs

Co-authored-by: Westin Musser <127992899+westin-m@users.noreply.github.com>
…ithm.cs

Co-authored-by: Westin Musser <127992899+westin-m@users.noreply.github.com>
* Serialize byte arrays as base64 strings in JsonWebToken and JwtSecurityToken

Fixes #2524
---------

Co-authored-by: Keegan Caruso <keegancaruso@microsoft.com>
pmaytak and others added 2 commits July 11, 2024 10:39
* Make IsNullOrEmpty internal

* Make the extension method visible to SAML tests.

* Make class internal.

* Use string.IsNullOrEmpty where appropriate.
@FuPingFranco FuPingFranco requested a review from iNinja July 11, 2024 21:23
Co-authored-by: joegoldman2 <147369450+joegoldman@users.noreply.github.com>
westin-m and others added 9 commits July 12, 2024 15:56
* new api takes stream

* rename method

* remove usings

* void when takes a stream, comment strings

* add testing, add api to public namespace

* review feedback
* Base for new ValidationParameters

* Clean up new files. Keep the original validator code in Validators.cs

---------

Co-authored-by: id4s <user@contoso.com>
…ValidationResultTests.cs

Co-authored-by: Westin Musser <127992899+westin-m@users.noreply.github.com>
…ithm.cs

Co-authored-by: Westin Musser <127992899+westin-m@users.noreply.github.com>
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.

7 participants