Metadata-Version: 2.1
Name: djangorestframework-kicksaw-auth
Version: 1.0.0
Summary: Provides DRF auth classes that are backed by various AWS resources
Home-page: https://github.com/Kicksaw-Consulting/djangorestframework-kicksaw-auth
Keywords: django,djangorestframework,drf,aws,apigateway
Author: Alex Drozd
Author-email: alex@kicksaw.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: boto3 (>=1.17.51,<2.0.0)
Requires-Dist: djangorestframework (>=3.12.4,<4.0.0)
Project-URL: Repository, https://github.com/Kicksaw-Consulting/djangorestframework-kicksaw-auth
Description-Content-Type: text/markdown

# Installation

```
pip install djangorestframework-kicksaw-auth
```

Or with poetry

```
poetry add djangorestframework-kicksaw-auth
```

# Usage

## BasicApiGatewayApiKeyAuth

```python
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

