Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
Open
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6958fe3
Add hs2019 to algorithm list and set to default sign algorithm
fulder Aug 24, 2020
0e18601
Print deprecation message on old algorithms
fulder Aug 24, 2020
39298a0
Requre digital signature algorithm while using 'hs2019' algorithm
fulder Aug 24, 2020
3e74497
Set algorithm class variable instead of property
fulder Aug 24, 2020
813d2a1
Remove duplicated default sign algorithm
fulder Aug 24, 2020
c2654c7
Rename long digital signature algorithm to just sign_algorithm
fulder Aug 24, 2020
bd001d8
Add sign_algorithm to HeaderSigner docstring
fulder Aug 24, 2020
79ca3a2
Require sign_algorithm for 'hs2019' algorith in Verifier
fulder Aug 24, 2020
86ef109
Accept None sign_algorithm for backward compability
fulder Aug 24, 2020
4052954
Take back setting algorithm to default twice
fulder Aug 24, 2020
1e01f5c
Update tests to hs2019 and add one deprecated test using old keys
fulder Aug 24, 2020
619a13c
Make PSS salt configurable
fulder Aug 24, 2020
0a57e36
Set default salt to None, i.e. digest size
fulder Aug 24, 2020
c4e36fb
Create sign_algorithms with first PSS class
fulder Aug 25, 2020
68b7369
Test creating superclass for sign algorithm
fulder Aug 25, 2020
2060e83
Check for subclasses of SignAlgorithms instead of hardcoded list
fulder Aug 25, 2020
dc2b90b
Rename default sign algorithm to default algorithm
fulder Aug 25, 2020
76c26c7
Fix failing test due to invalid signature
fulder Aug 25, 2020
179ab94
Import sign_algorithms in httpsig init
fulder Aug 25, 2020
4613083
Update README with newest algorithm
fulder Aug 25, 2020
1b061f9
Add sign_algorithm parameter to HTTPSignatureAuth
fulder Aug 25, 2020
77c42ad
Use issubclass instead of isinstance in Singer construct
fulder Aug 25, 2020
08ca125
Remove old unused HeaderVerfier salt_length parameter
fulder Aug 25, 2020
fb263d1
Enforce parameters for superclass sign/verify funcs
fulder Aug 25, 2020
f97f6c0
Bump README draft to version 12
fulder Aug 25, 2020
c5163f8
Throw exception on algorithm signature parameter and dervice algorith…
fulder Aug 26, 2020
912ff85
Return false in verify on algorith mismatch
fulder Aug 26, 2020
822cad0
Add test for correct derived algorithm
fulder Aug 26, 2020
251cce9
Move algorithm checks to Signer
fulder Aug 27, 2020
c6951c2
Fix typo in test name
fulder Aug 27, 2020
f517f39
Default to hash lenght for salt in PSS
fulder Aug 28, 2020
d2be3fb
Merge pull request #5 from fulder/default-to-hash-salt-length
fulder Aug 28, 2020
f419b34
Get hash digest_size in PSS construct
fulder Aug 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Take back setting algorithm to default twice
  • Loading branch information
fulder committed Aug 24, 2020
commit 40529548126586ac77560cfff105a4114d9b1716
3 changes: 3 additions & 0 deletions 3 httpsig/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ class HeaderSigner(Signer):
'authorization'.
"""
def __init__(self, key_id, secret, algorithm=None, sign_algorithm=None, headers=None, sign_header='authorization'):
if algorithm is None:
algorithm = DEFAULT_SIGN_ALGORITHM

super(HeaderSigner, self).__init__(secret=secret, algorithm=algorithm, sign_algorithm=sign_algorithm)
self.headers = headers or ['date']
self.signature_template = build_signature_template(
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.