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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file drf_logto-0.1.0.tar.gz.

File metadata

  • Download URL: drf_logto-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure

File hashes

Hashes for drf_logto-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d1c2be1ab8c69e2699b0491cf85d9b5cfa47ce79720632b54c5e632a73813bf
MD5 ef7bbe5609c0b994f9e6694225966849
BLAKE2b-256 d29d861c25b0d7cd6610c5a6c4fc7db0cb0b13d08b945da7cab07bf30155934d

See more details on using hashes here.

File details

Details for the file drf_logto-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: drf_logto-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure

File hashes

Hashes for drf_logto-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49bd32914b1eb27cc2ccd34bed13f7c920cc6acd34d3eb64f33809d94063036b
MD5 68b89e22ce39cb6e99f2a20401e636fb
BLAKE2b-256 ae0c9b99c94684239870ec837aedf9ee7b0647566015dd0fc70dcfb5de39dfa8

See more details on using hashes here.

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