Django authentication using cryptocurrency wallets
Project description
Django authentication using cryptocurrency wallets
Documentation
The full documentation is at https://django-cryptolock.readthedocs.io.
Quickstart
Install Django-Cryptolock:
pip install django-cryptolock
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_cryptolock.apps.DjangoCryptolockConfig',
...
)
Migrate your database.
Add Django-Cryptolock’s URL patterns:
from django.conf.urls import url
urlpatterns = [
...
url(r"^auth/", include("django_cryptolock.urls", namespace="django_cryptolock")),
...
]
Add the following settings to your project:
django_cryptolock.backends.MoneroAddressBackend to your AUTHENTICATION_BACKENDS
Set DJCL_MONERO_NETWORK with the network in use: mainnet, stagenet or testnet
Use DJCL_MONERO_WALLET_RPC_PROTOCOL, DJCL_MONERO_WALLET_RPC_HOST, DJCL_MONERO_WALLET_RPC_USER and DJCL_MONERO_WALLET_RPC_PASS to specify which wallet RPC should be used.
Finaly create the templates files (login.html and signup.html) under a django_cryptolock subfolder.
Features
Adds authentication based on cryptocurrency wallets to a Django project.
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox -e <your-python-version>-django-22
Credits
Tools used in rendering this package:
History
0.0.2 (2020-01-08)
A default urls.py is provided by the package so can work “out-of-the-box”.
Default location for templates moved to django_cryptolock folder.
Update quickstart guide.
Update instructions to contribute to the project.
Add DJCL namespace to all related settings.
MoneroAddressBackend is now executed when more parameters are added to the authenticate function.
0.0.1 (2019-11-25)
First release on PyPI.
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 django_cryptolock-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 604f10f3ae14fbe9b6d79eafd5ba5ebb89e100e3a2cc66c7dc3c0cefb326ab0a |
|
MD5 | e835d7602d7f389b55a0de5f4b45ca58 |
|
BLAKE2b-256 | ad333ed70c824fe19067a1f345b01d27877863ec48ad80412a3fee425af581e3 |