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.2a0.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for drf_logto-0.1.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe0b5f7adf59bc54b59d2755356ad7ffc412ec85aa5a5c8191e4f415a0754deb |
|
MD5 | 759381d8c81ec87d79661e9153c5a39e |
|
BLAKE2b-256 | 9e75ced7bce6614582b4eb76a5dd5d1996472ff29c857e4e46563c34d56973d4 |