{ "info": { "author": "jeffrey k eliasen", "author_email": "jeff+django-drupal-auth-backend@jke.net", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Security" ], "description": "Drupal Authentication Backend for Django\n========================================\n\nThis package provides an authentication backend that can be used to\nfacilitate migrating users from a Drupal-based website into a\nDjango-based web application.\n\nQuick start\n-----------\n\nInstall ``django_drupal_auth_backend``:\n\n.. code:: bash\n\n $ pip install django_drupal_auth_backend\n\nIn your settings module you will need to add the new hasher to :\n\n.. code:: python\n\n PASSWORD_HASHERS = (\n 'django.contrib.auth.hashers.PBKDF2PasswordHasher',\n 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',\n 'django.contrib.auth.hashers.BCryptPasswordHasher',\n 'django.contrib.auth.hashers.SHA1PasswordHasher',\n 'django.contrib.auth.hashers.MD5PasswordHasher',\n 'django.contrib.auth.hashers.CryptPasswordHasher',\n 'django_drupal_auth_backend.hashers.DrupalPasswordHasher',\n )\n\nMigrating users\n---------------\n\nYou will need to create a user entry for each user of the old system.\nWhile this will vary from application to application (depending on\nwhether you override the default user model provided by Django), the\nbasic step is to copy your user table into Django\u2019s user table. If you\nare using Postgres, you can copy the users in with something like this:\n\n.. code:: sql\n\n COPY INTO auth_user (username, password, email, is_active, is_staff) FROM STDIN;\n user1 drupal_sha512$FYEWxwlWtUUj8uB5QN2K0X9lNrnRl/hLpN3Qp8GK7v8emyc9eRsf user1@example.com t f\n user2 drupal_sha512$CsaltsaltA112iY375iFdNhp.gYEWxwlWtXdhjl.8hY7BufRTJ1u user2@example.com t f\n \\.\n\nThe most important thing to note with migrated accounts is that the\nhashed password being migrated needs to be modified slightly. Drupal\npasswords are of the form:\n\n::\n\n $S$CsaltsaltA112iY375iFdNhp.gYEWxwlWtXdhjl.8hY7BufRTJ1u\n\n\u2026 whereas the migrated passwords need to be of the form:\n\n::\n\n drupal_sha512$CsaltsaltA112iY375iFdNhp.gYEWxwlWtXdhjl.8hY7BufRTJ1u\n\nThe important distinction is that the ``$S$`` at the start of the hash\nneeds to be converted to ``drupal_sha512$`` for the Django\nauthentication backend subsystem to be able to recognize it and assign\nit to the ``DrupalPasswordHasher``. Note that the example table copy\ncommand above is using passwords of the right form.\n\nFull documentation\n------------------\n\n(needs additional documentation)\n\nContributing\n------------\n\nContributions are welcome.\n\nLicensing\n---------\n\nThis software is licensed under the GNU 3.0 license to comply with the\nDrupal license requirements for derivative works. Parts of this code are\ndirectly converted to Python from code in the Drupal project.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/seawolf42/django-drupal-auth-backend", "keywords": "django-drupal-auth-backend", "license": "GNU General Public License v3 or later (GPLv3+)", "maintainer": "", "maintainer_email": "", "name": "django-drupal-auth-backend", "package_url": "https://pypi.org/project/django-drupal-auth-backend/", "platform": "", "project_url": "https://pypi.org/project/django-drupal-auth-backend/", "project_urls": { "Homepage": "https://github.com/seawolf42/django-drupal-auth-backend" }, "release_url": "https://pypi.org/project/django-drupal-auth-backend/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "Authentication backend for Django that works with legacy Drupal 7 accounts.", "version": "1.0.3" }, "last_serial": 3677081, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "49a1526dda6024b47a7f95ad93984c76", "sha256": "7bd9ff791a42b76a55a01c0fa7f6dac4e24effa9175d25be5db568eb083c155e" }, "downloads": -1, "filename": "django-drupal-auth-backend-1.0.0.tar.gz", "has_sig": false, "md5_digest": "49a1526dda6024b47a7f95ad93984c76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18588, "upload_time": "2018-02-09T23:56:53", "url": "https://files.pythonhosted.org/packages/b8/eb/cd68441b3013e890319026be1a6902bfe2803c85682c8c80b7ea282db125/django-drupal-auth-backend-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "10b5105e5fc8e5192d0b7898dfc6f74b", "sha256": "35cb63a3d41f2ce8cfadc0a41be540dd9c9d5c51678ca53110abfac409de819b" }, "downloads": -1, "filename": "django-drupal-auth-backend-1.0.1.tar.gz", "has_sig": false, "md5_digest": "10b5105e5fc8e5192d0b7898dfc6f74b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18714, "upload_time": "2018-02-23T00:42:47", "url": "https://files.pythonhosted.org/packages/42/7e/f428f2b0da151d510437cba80d76c3b4baff02ca1f8dd32d1d4fdadc4c1e/django-drupal-auth-backend-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "aada1c274ea0cf07b24cf131a41dd9a4", "sha256": "49c58b8b4e6448d877da83bc5ce706bfaaad747c32b483b06c1776ef0c15cd56" }, "downloads": -1, "filename": "django-drupal-auth-backend-1.0.2.tar.gz", "has_sig": false, "md5_digest": "aada1c274ea0cf07b24cf131a41dd9a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18710, "upload_time": "2018-03-13T20:10:46", "url": "https://files.pythonhosted.org/packages/00/ac/ed8f9d6fd7310353c6c9106afc7881b5196814fb9a04fa64f2a13bcbb550/django-drupal-auth-backend-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "eafbb525939f85bea76a9d4cb60e0423", "sha256": "d602b083ec10267af23ba0548b0d8ff0c1e90f45680d86d90ecd60ead2b36183" }, "downloads": -1, "filename": "django_drupal_auth_backend-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "eafbb525939f85bea76a9d4cb60e0423", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8220, "upload_time": "2018-03-16T17:48:17", "url": "https://files.pythonhosted.org/packages/77/4a/034a1ba5522d47d22a947da2b4f4eb651e4957876050b0a5a565e223c770/django_drupal_auth_backend-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c946700bacd677538215b19eb2158b16", "sha256": "0860098883cd0f75d081a341e9aec8adaf55c41f32b6f993a49cf607c80fd456" }, "downloads": -1, "filename": "django-drupal-auth-backend-1.0.3.tar.gz", "has_sig": false, "md5_digest": "c946700bacd677538215b19eb2158b16", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18615, "upload_time": "2018-03-16T17:48:13", "url": "https://files.pythonhosted.org/packages/42/90/9e73b11650829bf262c4d69e68905600dea4ca7114d40294ed7cf48cb8d6/django-drupal-auth-backend-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eafbb525939f85bea76a9d4cb60e0423", "sha256": "d602b083ec10267af23ba0548b0d8ff0c1e90f45680d86d90ecd60ead2b36183" }, "downloads": -1, "filename": "django_drupal_auth_backend-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "eafbb525939f85bea76a9d4cb60e0423", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8220, "upload_time": "2018-03-16T17:48:17", "url": "https://files.pythonhosted.org/packages/77/4a/034a1ba5522d47d22a947da2b4f4eb651e4957876050b0a5a565e223c770/django_drupal_auth_backend-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c946700bacd677538215b19eb2158b16", "sha256": "0860098883cd0f75d081a341e9aec8adaf55c41f32b6f993a49cf607c80fd456" }, "downloads": -1, "filename": "django-drupal-auth-backend-1.0.3.tar.gz", "has_sig": false, "md5_digest": "c946700bacd677538215b19eb2158b16", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18615, "upload_time": "2018-03-16T17:48:13", "url": "https://files.pythonhosted.org/packages/42/90/9e73b11650829bf262c4d69e68905600dea4ca7114d40294ed7cf48cb8d6/django-drupal-auth-backend-1.0.3.tar.gz" } ] }