Skip to content
Merged
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions src/mock_vws/_query_validators/auth_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def validate_auth_header_number_of_parts(
@wrapt.decorator
def validate_client_key_exists(
wrapped: Callable[..., str],
instance: Any,
instance: Any, # pylint: disable=unused-argument
args: Tuple[_RequestObjectProxy, _Context],
kwargs: Dict,
) -> str:
Expand All @@ -106,8 +106,8 @@ def validate_client_key_exists(
request, context = args

header = request.headers['Authorization']
before_signature, _ = header.split(b':')
_, access_key = before_signature.split(b' ')
first_part, signature = header.split(b':')
_, access_key = first_part.split(b' ')
for database in instance.databases:
if access_key == database.client_access_key:
return wrapped(*args, **kwargs)
Expand Down