Installation
pip install djangorestframework-api-gateway-auth
Or with poetry
poetry add djangorestframework-api-gateway-auth
Usage
BasicApiGatewayApiKeyAuth
from djangorestframework_api_gateway_auth import BasicApiGatewayApiKeyAuth
@authentication_classes([BasicApiGatewayApiKeyAuth])
def endpoint(request: HttpRequest):
# ...
This authenticator reads basic auth and ensures the username and password match an API Gateway key
curl -u username:password -v localhost:8000/api/your/endpoint
Where username is the name of your API key and password is the API key
Metadata
Release files for djangorestframework-api-gateway-auth 0.2.0
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 |
|---|---|---|---|---|
| djangorestframework-api-gateway-auth-0.2.0.tar.gz | 2.1 kB | Without provenance | Details for djangorestframework-api-gateway-auth-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| djangorestframework_api_gateway_auth-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for djangorestframework_api_gateway_auth-0.2.0-py3-none-any.whl |
Total release size: 4.7 kB
Release files / djangorestframework-api-gateway-auth-0.2.0.tar.gz
| Download URL | djangorestframework-api-gateway-auth-0.2.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69e7f5839b4745a9b57ad6f33f6cf43991df5489f098970ec5588929384dbee1
|
|
BLAKE2b-256 checksum How to use checksums |
30e6f84cc5c2e47a57488e27ad52ceaafea86fb73f789855c1ce1fcc7628514c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.7 Windows/10
|
Release files / djangorestframework_api_gateway_auth-0.2.0-py3-none-any.whl
| Download URL | djangorestframework_api_gateway_auth-0.2.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfd7334825be0f807891b80e880828eb663cd95a01dcc490c349726f61c03a42
|
|
BLAKE2b-256 checksum How to use checksums |
31e06948b0886a4a27bffd47e26d1c4d807eaa165a296ab51604468a1884f96b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.7 Windows/10
|
Security for djangorestframework-api-gateway-auth 0.2.0
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.