Metadata-Version: 2.1
Name: drf-logto
Version: 0.1.0
Summary: Logto authentication integration for Django Rest Framework.
Home-page: https://github.com/housain-maina/drf-logto
License: MIT
Author: Hussaini Usman
Author-email: hussainmaina27@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: django (>=3.2)
Requires-Dist: djangorestframework (>=3.2)
Requires-Dist: djangorestframework-simplejwt (>=4.1)
Description-Content-Type: text/markdown

# Drf-Logto

Logto authentication integration for Django Rest Framework.

## Installation & Usage

    pip install drf-logto

Add "drf_logto" to INSTALLED_APPS list:

```py
INSTALLED_APPS = [

    "drf_logto",
]
```

Include "drf_logto.urls" in your project's urls.py:

```py
from django.urls import path, include

urlpatterns = [

    path("auth/", include("drf_logto.urls")),
]
```

Set AUTH_USER_MODEL in settings.py to "drf_logto.LogtoUser"

```py
AUTH_USER_MODEL = "drf_logto.LogtoUser"
```

### Settings

```py
DRF_LOGTO = {
    "WEBHOOK_HEADER_KEY": "Example-Webhook-Token",
    "WEBHOOK_HEADER_VALUE": "sdfksdjfksjdfsdkfjsdkfjksdjf",
    "SIGNUP_IDENTIFIER": "email",
}
```

