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.0.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for drf_logto-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49bd32914b1eb27cc2ccd34bed13f7c920cc6acd34d3eb64f33809d94063036b |
|
MD5 | 68b89e22ce39cb6e99f2a20401e636fb |
|
BLAKE2b-256 | ae0c9b99c94684239870ec837aedf9ee7b0647566015dd0fc70dcfb5de39dfa8 |