-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for hardware security module (HSM) signing.
goxmldsig was recently updated to support HSMs. This is done by supporting signing using the `crypto.Signer` directly, which is how HSMs are able to sign things in golang. This commit adds a new field `Signer` to the `IdentityProvider` which takes precedence over the `Key` field when creating the `SigningContext`. The `Key` field has been left in place to maintain backwards compatibility. Tests have been updated to verify that this functions, and the `samlidp` example identity provider has been updated such that it now supports a `Signer` option. Additionally, `NewIdentifyProviderTest` has been corrected to `NewIdentityProviderTest`.
- Loading branch information
Mike Wilson
committed
Apr 11, 2023
1 parent
8e92368
commit 3558205
Showing
7 changed files
with
122 additions
and
65 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
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
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.