-
Notifications
You must be signed in to change notification settings - Fork 478
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 specifying 'RSAPublicKey' instance instead of raw byt…
…es (#1477) * Add support for specifying 'RSAPublicKey' instance instead of raw bytes This can be used to externalize the JWT encoding process. * Add test for private key abstraction layer * Add 'isinstance' check to make sure private key has an expected type * Revert method signature change Note that while this method does not require a private key, the change is inconsequential because we're anyway expecting something that implements a private key at the class level (either bytes or an abstract implementation) * Be more specific in type error message * Add failing test for non-bytes, non-RSAPrivateKey value * Fix linting issues * add changelog * Move cases which are now handled by type testing over to unit test --------- Co-authored-by: sfc-gh-sfan <[email protected]>
- Loading branch information
1 parent
1380e41
commit db8e265
Showing
5 changed files
with
93 additions
and
24 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