Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
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
22 changes: 11 additions & 11 deletions hawk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,17 +275,17 @@ def get_bewit(uri, options=None):
if len(url_parts['query']) > 0:
resource += '?' + url_parts['query']

artifacts = {
'ts': int(exp),
'nonce': '',
'method': 'GET',
'resource': resource,
'host': url_parts['hostname'],
'port': str(url_parts['port']),
'ext': options['ext']
}

return hcrypto.calculate_bewit(creds, artifacts, exp)
artifacts = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for figuring this out!

'ts': int(exp),
'nonce': '',
'method': 'GET',
'resource': resource,
'host': url_parts['hostname'],
'port': str(url_parts['port']),
'ext': options['ext']
}

return hcrypto.calculate_bewit(creds, artifacts, exp)


def valid_bewit_args(uri, options):
Expand Down