Skip to main content

Django authentication using cryptocurrency wallets

Project description

https://badge.fury.io/py/django-cryptolock.svg https://travis-ci.org/dethos/django-cryptolock.svg?branch=master https://coveralls.io/repos/github/dethos/django-cryptolock/badge.svg

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-cryptolock, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django_cryptolock-0.0.2-py2.py3-none-any.whl (11.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-cryptolock-0.0.2.tar.gz (10.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page