{ "info": { "author": "Merixstudio", "author_email": "trench@merixstudio.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "=============\ndjango-trench\n=============\n\n.. image:: https://travis-ci.org/merixstudio/django-trench.svg?branch=master\n :target: https://travis-ci.org/merixstudio/django-trench\n\n.. image:: https://codecov.io/gh/merixstudio/django-trench/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/merixstudio/django-trench/\n\n.. image:: https://readthedocs.org/projects/django-trench/badge/?version=latest\n :target: https://django-trench.readthedocs.io/en/latest/?badge=latest\n\n\n| **django-trench** provides a set of REST API endpoints to supplement `django-rest-framework`_ with multi-factor authentication (MFA, 2FA). It supports both standard built-in authentication methods, as well as JWT (JSON Web Token). **django-trench** follows the url pattern developed in `djoser`_ library and may act as its supplement.\n| We deliver a couple of sample secondary authentication methods including sending OTP based code by email, SMS/text as well as through 3rd party mobile apps or utilising YubiKey. Developers can easily add own auth backend supporting any communication channel.\n\nFeatures\n--------\n\n* Easily plugable and compatible with `django-rest-framework`_ and `djoser`_\n* Allows user to pick an additional authentication method from range of backends defined by a developer. Read more: `backends`_\n* Comes out of a box with email, SMS, mobile apps and YubiKey support\n\nRequirements\n------------\n\nSupported versions\n******************\n\n* Python 3.4, 3.5, 3.6, 3.7\n* Django 1.11, 2.0, 2.1, 2.2\n* Django REST Framework 3.7, 3.8, 3.9\n\n| If you implement Token Based Authentication:\n\n* `djoser`_ >= 1.21.0\n\n| If you are going to use JWT authentication:\n\n* `django-rest-framework-jwt`_ >= 1.11.0\n\n| or\n\n* `djangorestframework-simplejwt`_ >= 3.3\n\nQuick Start\n-----------\n\n1. Install the package using pip:\n\n.. code-block:: python\n\n pip install django-trench\n\nor add it to your requirements file.\n\n2. Add ``trench`` library to INSTALLED_APPS in your app settings file:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...,\n 'rest_framework',\n 'rest_framework.authtoken', # In case of implementing Token Based Authentication\n ...,\n 'trench',\n )\n\n3. Run migrations\n\n| Read further in: `installation`_.\n\nTranslation\n-----------\n\nTrench uses Transifex service to translate our package into other languages.\n\nWe will appreciate your help with translation.\n\nhttps://www.transifex.com/merixstudio/django-trench/dashboard/\n\n\nDemo project\n------------\n\nYou can also check our live `demo`_.\n\n.. _backends: https://django-trench.readthedocs.io/en/latest/backends.html\n.. _installation: https://django-trench.readthedocs.io/en/latest/installation.html\n.. _demo: https://django-trench.readthedocs.io/en/latest/demo.html\n.. _django-rest-framework: http://www.django-rest-framework.org\n.. _djoser: https://github.com/sunscrapers/djoser\n.. _django-rest-framework-jwt: https://github.com/GetBlimp/django-rest-framework-jwt\n.. _djangorestframework-simplejwt: https://github.com/davesque/django-rest-framework-simplejwt", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/merixstudio/django-trench", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-trench", "package_url": "https://pypi.org/project/django-trench/", "platform": "", "project_url": "https://pypi.org/project/django-trench/", "project_urls": { "Homepage": "https://github.com/merixstudio/django-trench" }, "release_url": "https://pypi.org/project/django-trench/0.2.2/", "requires_dist": null, "requires_python": "", "summary": "REST Multi-factor authentication package for Django", "version": "0.2.2" }, "last_serial": 5299595, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "98b8acb5f3ba99ad30e534f52a017796", "sha256": "1c2fc8293dfbbe3dcb43480c6685cf590fe3d18f9b27ccf4d90539c810d39a36" }, "downloads": -1, "filename": "django-trench-0.1.0.tar.gz", "has_sig": false, "md5_digest": "98b8acb5f3ba99ad30e534f52a017796", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24349, "upload_time": "2018-11-08T13:42:06", "url": "https://files.pythonhosted.org/packages/b2/e0/8dc8eefe233e2ad86f0dc192cc67ab094e777bee499223f6ceaae352f1ef/django-trench-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "81da7ae7a7137f86d4262c598a084197", "sha256": "17f4ac7871a39b1736282beb13d182467ead82442fdd2e7e5b341f5c3eb41b5f" }, "downloads": -1, "filename": "django-trench-0.2.0.tar.gz", "has_sig": false, "md5_digest": "81da7ae7a7137f86d4262c598a084197", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22176, "upload_time": "2019-01-15T16:24:18", "url": "https://files.pythonhosted.org/packages/23/ca/36af339275691f667f67941a7f5a342f8090fab9292b2f143b4f9bd3a207/django-trench-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "f431cf1bb1d6455ec12a9f93b77c2963", "sha256": "1e460e0d9216b3e36d11604d7bd018612512f3acea88d26acf2123594a3a98f3" }, "downloads": -1, "filename": "django-trench-0.2.1.tar.gz", "has_sig": false, "md5_digest": "f431cf1bb1d6455ec12a9f93b77c2963", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22448, "upload_time": "2019-03-05T08:22:58", "url": "https://files.pythonhosted.org/packages/ab/9f/e1cf0d7ce41cf72d766f00a56a32d6470c3aad0241cb42e405560bf6e508/django-trench-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "e970203a0314d4f77186b0f2279044ff", "sha256": "1450b9121881bc3e98dde116085f00a3c3ea8a6aee328a89e6fd0f47e21083ac" }, "downloads": -1, "filename": "django-trench-0.2.2.tar.gz", "has_sig": false, "md5_digest": "e970203a0314d4f77186b0f2279044ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23601, "upload_time": "2019-05-21T20:22:28", "url": "https://files.pythonhosted.org/packages/6c/c1/cb5fb3dd8b4f20cb386b12165dee5e52d0be5076438e7d26d09178ed410c/django-trench-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e970203a0314d4f77186b0f2279044ff", "sha256": "1450b9121881bc3e98dde116085f00a3c3ea8a6aee328a89e6fd0f47e21083ac" }, "downloads": -1, "filename": "django-trench-0.2.2.tar.gz", "has_sig": false, "md5_digest": "e970203a0314d4f77186b0f2279044ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23601, "upload_time": "2019-05-21T20:22:28", "url": "https://files.pythonhosted.org/packages/6c/c1/cb5fb3dd8b4f20cb386b12165dee5e52d0be5076438e7d26d09178ed410c/django-trench-0.2.2.tar.gz" } ] }