Skip to main content

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


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)

Uploaded Source

Built Distribution

drf_logto-0.1.0-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page