Skip to main content

Provides DRF auth classes that are backed by various AWS resources

Project description

Installation

pip install djangorestframework-kicksaw-auth

Or with poetry

poetry add djangorestframework-kicksaw-auth

Usage

BasicApiGatewayApiKeyAuth

from djangorestframework_kicksaw_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


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

File details

Details for the file djangorestframework-kicksaw-auth-1.0.0.tar.gz.

File metadata

File hashes

Hashes for djangorestframework-kicksaw-auth-1.0.0.tar.gz
Algorithm Hash digest
SHA256 47735525c4b69ba2c143691ae545a752ca045884d66b3507d5ff286d0cb00ee2
MD5 144c2ef1141654c9a65a9674005b08e7
BLAKE2b-256 1f3fefc3eeffa3f4b26bd2024aa5c7091e6d2144c12e85591e078f0fadd25f4d

See more details on using hashes here.

File details

Details for the file djangorestframework_kicksaw_auth-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djangorestframework_kicksaw_auth-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2402d43677449ca3e53552ff995227330fe8e98aaf18271bd6f5d43b45b0e760
MD5 47981cf69b9805245a37c2e5bebb0432
BLAKE2b-256 0c61a3222fa684a0c4fdc6961aef8afeaff20cee73d6256ba9e5995ebdc35c53

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page