-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAML2 new model validation: Signature (#2961)
* Added XmlValidationError. Added ValidationError property to XmlValidationException to provide custom stack traces * Added alternative versions using ValidationParameters to XML signature validations * Added XmlValidationFailure to ValidationFailureType * Added refactored ValidateSignature method to SamlSecurityTokenHandler. Updated ValidateTokenAsync to call ValidateSignature. * Added tests to compare signature validation between the legacy and new path * Re-added API lost in merge to InternalAPI.Unshipped.txt * Migrated refactored ValidateSignature from SamlSecurityTokenHandler to Saml2SecurityTokenHandler * Updated Saml2SecurityTokenHandler's ValidateTokenAsync to validate signatures * Added tests * Update src/Microsoft.IdentityModel.Tokens.Saml/Saml2/Saml2SecurityTokenHandler.ValidateSignature.cs Co-authored-by: msbw2 <brettwhite@microsoft.com> * Addressed PR feedback in both SAML and SAML2 signature validations to keep the alignment * Optimised signature validation in SAML and SAML2 for the expected most common scenario * Removed debug information * Addressed PR feedback * Addressed PR feedback --------- Co-authored-by: msbw2 <brettwhite@microsoft.com>
- Loading branch information
Showing
10 changed files
with
518 additions
and
69 deletions.
There are no files selected for viewing
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
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.