Skip to content

Commit

Permalink
Fixing beaconsite queries with dots in the key id (#369) (#370)
Browse files Browse the repository at this point in the history
Closes: #369
  • Loading branch information
holtgrewe committed Mar 4, 2022
1 parent dc32e7e commit 5e04b4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ End-User Summary
- Allowing direct update of variant annotations and ACMG ratings on case annotations details (#344)
- Fixing problem with ACMD classifiction where VUS-3 was given but should be LB-2 (#359)
- Adding REST API for creating small variant queries (#332)
- Fixing beaconsite queries with dots in the key id (#369)

Full Change List
================
Expand Down Expand Up @@ -104,6 +105,7 @@ Full Change List
- Fixing problem with ACMD classifiction where VUS-3 was given but should be LB-2 (#359)
- Adding REST API for creating small variant queries (#332)
- Upgrading sodar-core dependency to 0.10.10
- Fixing beaconsite queries with dots in the key id (#369)

-------
v0.23.9
Expand Down
8 changes: 4 additions & 4 deletions beaconsite/views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def _header_canonical(header_name):
class _SignedSiteAuthentication(authentication.BaseAuthentication):
"""Based on the code of ``django-rest-framework-httpsignature``."""

SIGNATURE_RE = re.compile('signature="(.+?)"')
HEADERS_RE = re.compile('headers="([\(\)\sa-z0-9-]+?)"')
KEYID_RE = re.compile('keyId="([\(\)\sa-z0-9-]+?)"')
ALGORITHM_RE = re.compile('algorithm="([\(\)\sa-z0-9-]+?)"')
SIGNATURE_RE = re.compile(r'signature="(.+?)"')
HEADERS_RE = re.compile(r'headers="([\(\)\sa-z0-9-]+?)"')
KEYID_RE = re.compile(r'keyId="([\(\)\sa-z0-9-\.]+?)"')
ALGORITHM_RE = re.compile(r'algorithm="([\(\)\sa-z0-9-]+?)"')

def get_signature_from_signature_string(self, signature):
"""Return the signature from the signature header or None."""
Expand Down

0 comments on commit 5e04b4d

Please sign in to comment.