Skip to content

Logto authentication integration for Django Rest Framework.

License

Notifications You must be signed in to change notification settings

Housain-maina/drf-logto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codecov Ruff

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",
}

About

Logto authentication integration for Django Rest Framework.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages