Provides DRF auth classes that are ultimately backed by API Gateway
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djangorestframework-api-gateway-auth-0.2.0.tar.gz.
File metadata
- Download URL: djangorestframework-api-gateway-auth-0.2.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69e7f5839b4745a9b57ad6f33f6cf43991df5489f098970ec5588929384dbee1
|
|
| MD5 |
e791847ead3eab86591ee83c57924050
|
|
| BLAKE2b-256 |
30e6f84cc5c2e47a57488e27ad52ceaafea86fb73f789855c1ce1fcc7628514c
|
File details
Details for the file djangorestframework_api_gateway_auth-0.2.0-py3-none-any.whl.
File metadata
- Download URL: djangorestframework_api_gateway_auth-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfd7334825be0f807891b80e880828eb663cd95a01dcc490c349726f61c03a42
|
|
| MD5 |
5d9ae18d06368ccfb01ab4843249cc3a
|
|
| BLAKE2b-256 |
31e06948b0886a4a27bffd47e26d1c4d807eaa165a296ab51604468a1884f96b
|