Logto authentication integration for Django Rest Framework.
Project description
Drf-Logto
Logto authentication integration for Django Rest Framework.
Installation & Usage
pip install drf-logto
Add "drf_logto" to INSTALLED_APPS list:
INSTALLED_APPS = [
"drf_logto",
]
Include "drf_logto.urls" in your project's urls.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"
AUTH_USER_MODEL = "drf_logto.LogtoUser"
Settings
DRF_LOGTO = {
"WEBHOOK_HEADER_KEY": "Example-Webhook-Token",
"WEBHOOK_HEADER_VALUE": "sdfksdjfksjdfsdkfjsdkfjksdjf",
"SIGNUP_IDENTIFIER": "email",
}
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
drf_logto-0.1.1a0.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for drf_logto-0.1.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a4d03cc38a802051b48d354886a9c356098171c62f541a8c9528ed18f4d6f45 |
|
MD5 | 761b8d8efec80ea47e84c9c2d836b6d6 |
|
BLAKE2b-256 | 7698f4851265f4d508c89eee50aee4853a85c6a6e0387148610a1501144065a8 |