{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# Django Magicauth\n\nAuthentifiez vos utilisateurs sans mot de passe avec Django Magicauth\n\n## Fonctionnement (FR)\n\nLorsqu'un service utilise Django Magicauth, les utilisateurs s'authentifient en entrant leur adresse email.\nIls re\u00e7oivent alors un email avec un lien de connexion.\nS'ils cliquent sur le lien, ils sont authentifi\u00e9s et redirig\u00e9s sur le service.\n\n## How it works (EN)\n\nDjango Magicauth brings password-less authentication to your project.\n\n# Installations and testing instructions (EN)\n\n## Quick start\n\n1. Install MagicAuth\n```sh\npip install git+https://github.com/betagouv/django-magicauth.git\n\n```\n\n2. Add \"magicauth\" to your INSTALLED_APPS in `settings.py`\n```python\nINSTALLED_APPS = [\n # all your apps\n \"magicauth\",\n]\n\n```\n\n2. Include the magicauth URLconf in your app's `url.py`\n```python\n# After your previous imports\nfrom magicauth import views as magicauth_views\nfrom magicauth.urls import urlpatterns as magicauth_urls\n\nurlpatterns = [\n # here are your URL patterns\n]\n\nurlpatterns.extend(magicauth_urls)\n```\n\n3. Add the following items in your project's settings.py`\n\n```\nMAGICAUTH_FROM_EMAIL=e.g. 'contact@mysite.com'\nMAGICAUTH_LOGGED_IN_REDIRECT_URL_NAME=e.g. 'home'\n```\n\n4. Run `python manage.py migrate` to create the polls models.\n\n5. Setup your (mailer)[https://docs.djangoproject.com/en/2.2/topics/email/#console-backend] in `settings.py`\nIn dev mode, you can use a (console mailer)[https://docs.djangoproject.com/en/2.2/topics/email/#console-backend]\n\n6. Make sure you have the following middlewares\n```\nMIDDLEWARE = [\n # [...] other middleware you may have\n \"django.contrib.sessions.middleware.SessionMiddleware\",\n \"django.contrib.messages.middleware.MessageMiddleware\",\n \"django.contrib.auth.middleware.AuthenticationMiddleware\",\n \"django.contrib.sites.middleware.CurrentSiteMiddleware\",\n]\n\n```\n## Contribute to Magic auth\n\nTo contribute to magicauth, you can install the package in the \"editable\" mode \n```\npip uninstall django-magicauth # just in case...\npip install -e git+https://github.com/betagouv/django-magicauth.git#egg=django-magicauth\n```\n\n### run tests\n```\nDJANGO_SETTINGS_MODULE=magicauth.tests.settings pytest\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-magicauth", "package_url": "https://pypi.org/project/django-magicauth/", "platform": "", "project_url": "https://pypi.org/project/django-magicauth/", "project_urls": null, "release_url": "https://pypi.org/project/django-magicauth/0.2/", "requires_dist": null, "requires_python": "", "summary": "Password-less authentication: login by clicking on a magic link received by email.", "version": "0.2" }, "last_serial": 5907662, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "74b294ee5911c0b9ffeeb05a062daa9c", "sha256": "6d1c7e2257b9b5af541a85aaca0bed026e91f57093a50643e5521e7eb15de713" }, "downloads": -1, "filename": "django-magicauth-0.2.tar.gz", "has_sig": false, "md5_digest": "74b294ee5911c0b9ffeeb05a062daa9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11711, "upload_time": "2019-09-30T15:51:12", "url": "https://files.pythonhosted.org/packages/76/20/b114689a3688b7f8424f0598e7e44551420d3941ede98bd228e0da1c3400/django-magicauth-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "74b294ee5911c0b9ffeeb05a062daa9c", "sha256": "6d1c7e2257b9b5af541a85aaca0bed026e91f57093a50643e5521e7eb15de713" }, "downloads": -1, "filename": "django-magicauth-0.2.tar.gz", "has_sig": false, "md5_digest": "74b294ee5911c0b9ffeeb05a062daa9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11711, "upload_time": "2019-09-30T15:51:12", "url": "https://files.pythonhosted.org/packages/76/20/b114689a3688b7f8424f0598e7e44551420d3941ede98bd228e0da1c3400/django-magicauth-0.2.tar.gz" } ] }