Authentication using cryptocurrency wallets for Django projects
Go to file
Gonçalo Valério 9b72049576 bump version 2020-01-08 18:44:37 +00:00
.github Initial commit. Cookiecutter based project structure 2019-09-24 18:02:54 +01:00
django_cryptolock bump version 2020-01-08 18:44:37 +00:00
docs configure django settings when building docs 2019-12-01 00:30:18 +00:00
example added djcl namespace to all settings related to this project 2020-01-06 12:23:41 +00:00
tests MoneroAddressBackend now handles extra keyword arguments that might be provided. Also added more tests 2020-01-06 17:24:27 +00:00
.coveragerc Initial commit. Cookiecutter based project structure 2019-09-24 18:02:54 +01:00
.editorconfig Initial commit. Cookiecutter based project structure 2019-09-24 18:02:54 +01:00
.gitignore add tests for the current address model and validator 2019-10-15 19:13:39 +01:00
.travis.yml add django 3.0 to the ci 2020-01-06 18:13:47 +00:00
AUTHORS.rst Initial commit. Cookiecutter based project structure 2019-09-24 18:02:54 +01:00
CONTRIBUTING.rst Update contribution instructions 2020-01-06 12:06:15 +00:00
HISTORY.rst update release date on history file 2020-01-08 18:34:03 +00:00
LICENSE Initial commit. Cookiecutter based project structure 2019-09-24 18:02:54 +01:00
MANIFEST.in Add first implementation of the authentication backend 2019-10-15 17:45:18 +01:00
Makefile update quickstart guide 2019-12-01 00:07:03 +00:00
README.rst added djcl namespace to all settings related to this project 2020-01-06 12:23:41 +00:00
manage.py Initial commit. Cookiecutter based project structure 2019-09-24 18:02:54 +01:00
pytest.ini use pytest for testing 2019-10-15 18:13:56 +01:00
requirements.txt Add first implementation of the authentication backend 2019-10-15 17:45:18 +01:00
requirements_dev.txt update quickstart guide 2019-12-01 00:07:03 +00:00
requirements_test.txt update requirements to avoid double dependency problem on the CI 2020-01-06 18:40:32 +00:00
setup.cfg bump version 2020-01-08 18:44:37 +00:00
setup.py update requirements to avoid double dependency problem on the CI 2020-01-06 18:40:32 +00:00
tox.ini update requirements to avoid double dependency problem on the CI 2020-01-06 18:40:32 +00:00

README.rst

=============================
Django-Cryptolock
=============================

.. image:: https://badge.fury.io/py/django-cryptolock.svg
    :target: https://badge.fury.io/py/django-cryptolock

.. image:: https://travis-ci.org/dethos/django-cryptolock.svg?branch=master
    :target: https://travis-ci.org/dethos/django-cryptolock

.. image:: https://coveralls.io/repos/github/dethos/django-cryptolock/badge.svg
    :target: https://coveralls.io/github/dethos/django-cryptolock

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`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'django_cryptolock.apps.DjangoCryptolockConfig',
        ...
    )

Migrate your database.

Add Django-Cryptolock's URL patterns:

.. code-block:: python

    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:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage