No project description provided
Project description
LnAuth Django
This is a reusable Django application providing Lightning Network url authentication functionality.
Currently only login
and register
actions are supported.
Installation
You can install LnAuth-Django using pip:
pip install lnauth-django
Or, if you're using pipenv:
pipenv install lnauth-django
Configuration
Once installed, add 'lnauth_django'
to your INSTALLED_APPS
setting:
INSTALLED_APPS = [
...
'lnauth_django',
...
]
Then, include the URL configuration in your project's urls:
from django.urls import include, path
urlpatterns = [
...
path('lnauth_django/', include('lnauth_django.urls')),
...
]
Settings
Here are the settings you can set in your settings.py
to customize Django My App:
-
LNURL_AUTH_ROOT_DOMAIN
: This is used to specify the domain for your app. By default, it should be the domain where your Django project is hosted. Required. -
LNURL_AUTH_K1_TIMEOUT
: This is used to specify the timeout of thek1
challenge in seconds. By default, it is set to60 * 60
seconds (1 hour).
Usage
This section describes how to use the main functionalities provided by LnAuth Django...
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
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
Built Distribution
Hashes for lnauth_django-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc6ebca9c1d8a3857f4b348bcdca0e3471118cbae845291c30830a3ab71eded |
|
MD5 | d130017c2784aa9c375ab9b3b82031c0 |
|
BLAKE2b-256 | 0ab03a16cd537fc214babd78a604cf7f2ca39b7c8abc6468e14e028974aa5157 |