hawk-server-asyncio

Utility function to perform the server-side of Hawk authentication for asyncio servers, with no dependencies other than the Python standard library.
Installation
pip install hawk-server-asyncio
Usage
from hawkserver import authenticate_hawk_header
async def lookup_credentials(id):
# Return {'id': 'some-id', 'key': 'some-secret'} matching credentials,
# or None if credentials can't be found
async def seen_nonce(nonce, id):
# Store nonce, return True if nonce previously seen
error_message, credentials = await 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-asyncio 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hawk-server-asyncio-0.0.13.tar.gz | 2.5 kB | Without provenance | Details for hawk-server-asyncio-0.0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hawk_server_asyncio-0.0.13-py3-none-any.whl | Python 3 | none | any | Details for hawk_server_asyncio-0.0.13-py3-none-any.whl |
Total release size: 6.2 kB
Release files / hawk-server-asyncio-0.0.13.tar.gz
| Download URL | hawk-server-asyncio-0.0.13.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eee7cb551599ab1d130637a7c951f784c8a825b021f8ef8e1349b4e13d50fcf9
|
|
BLAKE2b-256 checksum How to use checksums |
a894998b1553f2e2060f646e2e666b6be8b80599def98b556335b305878d1e5a
|
| 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_asyncio-0.0.13-py3-none-any.whl
| Download URL | hawk_server_asyncio-0.0.13-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fb62e41ef9b503359009cc02bd760381fd5cde56fc7fe9b4132768871c36dd0
|
|
BLAKE2b-256 checksum How to use checksums |
682422a6d0f0c61a88f4f5e3107f0f2db5b79c8bd063c035cc6c8a449f0bb4b6
|
| 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-asyncio 0.0.13
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.