Skip to main content

hawk-server CircleCI Test Coverage

Utility function to perform the server-side of Hawk authentication, with no dependencies other than the Python standard library.

Installation

pip install hawk-server

Usage

from hawkserver import authenticate_hawk_header

def lookup_credentials(id):
    # Return {'id': 'some-id', 'key': 'some-secret'} matching credentials,
    # or None if credentials can't be found

def seen_nonce(nonce, id):
    # Store nonce, return True if nonce previously seen

error_message, credentials = authenticate_hawk_header(
    lookup_credentials, seen_nonce, max_skew,
    header, method, host, port, path, content_type, content,
)
if error_message is not None:
    # Return error or raise exception as needed

Metadata

Release files for hawk-server 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hawk-server 0.0.12
File Size Uploaded Provenance
hawk-server-0.0.12.tar.gz 2.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hawk-server 0.0.12
File Interpreter ABI Platform
hawk_server-0.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / hawk-server-0.0.12.tar.gz

Download URL hawk-server-0.0.12.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9737819865c46a343e8fff1ec3571e4945359fa4d2e1c248c73ff8dc9f923831
BLAKE2b-256 checksum
How to use checksums
6624783c5a565f65f33c025c5b7ab1122b5186a03e66ee159cddd05734af7860
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release files / hawk_server-0.0.12-py3-none-any.whl

Download URL hawk_server-0.0.12-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4add4af0021e64ecb64524b264855f6de815d4acbc0aac9b9419f6a08dabe112
BLAKE2b-256 checksum
How to use checksums
86e94b0cfd214eb4ddb64a7f8e8db9ff8cf0c05abd9eea74f5fc2ded5c625b93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Security for hawk-server 0.0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page