-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extensibility tests: Algorithm and Signature - JWT, SAML and SAML2 (#…
…3034) * Added SecurityTokenInvalidOperationException to replace InvalidOperationException when used with ValidationError subclasses (cherry picked from commit 0c59aef) * Added SignatureValidationError to handle exceptions generated during signature validation * Removed XmlValidationError. Updated XML signature validation to use SignatureValidationError instead * Added log messages, validation failure types. Removed nullability of CallContext in the signature validation delegate. * Handle potential exceptions thrown during signature validation, both signature and algorithm related * Updated validation errors and test * Added custom validation errors and delegates for algorithm and signature validation * Added algorithm extensibility tests for JWT, SAML, and SAML2 (cherry picked from commit 462e576) * Added signature extensibility tests for JWT, SAML, and SAML2 (cherry picked from commit 1ec5741)
- Loading branch information
Showing
29 changed files
with
2,601 additions
and
221 deletions.
There are no files selected for viewing
144 changes: 84 additions & 60 deletions
144
src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.ValidateSignature.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.