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
Close
Hashes for djangorestframework-api-gateway-auth-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69e7f5839b4745a9b57ad6f33f6cf43991df5489f098970ec5588929384dbee1 |
|
MD5 | e791847ead3eab86591ee83c57924050 |
|
BLAKE2b-256 | 30e6f84cc5c2e47a57488e27ad52ceaafea86fb73f789855c1ce1fcc7628514c |
Close
Hashes for djangorestframework_api_gateway_auth-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfd7334825be0f807891b80e880828eb663cd95a01dcc490c349726f61c03a42 |
|
MD5 | 5d9ae18d06368ccfb01ab4843249cc3a |
|
BLAKE2b-256 | 31e06948b0886a4a27bffd47e26d1c4d807eaa165a296ab51604468a1884f96b |