https://github.com/housain-maina/drf-logto
Logto authentication integration for Django Rest Framework.
https://github.com/housain-maina/drf-logto
django django-rest-framework logto
Last synced: 3 months ago
JSON representation
Logto authentication integration for Django Rest Framework.
- Host: GitHub
- URL: https://github.com/housain-maina/drf-logto
- Owner: Housain-maina
- License: mit
- Created: 2024-08-24T14:22:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-18T09:59:19.000Z (almost 2 years ago)
- Last Synced: 2025-10-06T08:42:24.493Z (10 months ago)
- Topics: django, django-rest-framework, logto
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://codecov.io/gh/Housain-maina/drf-logto)
[](https://github.com/astral-sh/ruff)
# 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",
}
```