{ "info": { "author": "ouhouhsami", "author_email": "samuel.goldszmidt@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "===============\ndjango-imapauth\n===============\n\ndjango-imapauth is a simple IMAP authentification backend for django.\n\n\nQuick start\n-----------\n\nRequirements : \n* Django 1.4.3 (tested).\n\n\n1. Install the app\n\n pypi version\n\n ```\n pip install django-imapauth\n ```\n\n development version\n\n ```\n pip install -e git+http://github.com/ouhouhsami/django-imapauth.git#egg=django-imapauth\n ```\n\n2. Add ```'imapauth.backends.IMAPBackend'``` to your ```AUTHENTICATION_BACKENDS``` setting\n\n ```\n AUTHENTICATION_BACKENDS = (\n 'imapauth.backends.IMAPBackend',\n 'django.contrib.auth.backends.ModelBackend',\n )\n ```\n\n3. Add ```IMAPAUTH_HOST``` in your settings\n\n ```\n IMAPAUTH_HOST = 'my_imap_host'\n ```\n\n\nUsage\n-----\n\nWith django-imapauth, when a user try to authenticate in your system, the ```IMAPBackend``` will try to connect to the ```IMAPAUTH_HOST``` with his credentials. \nBe careful, it's not because a user is authenticated that he can access the admin site. For that, refer to the example below, and use ```CustomIMAPBackend``` in ```AUTHENTICATION_BACKENDS```:\n\n\n from imapauth.backends import IMAPBackend\n\n class CustomIMAPBackend(IMAPBackend):\n def authenticate(self, username=None, password=None):\n user = super(CustomIMAPBackend, self).authenticate(username, password)\n if user is None:\n return None\n user.is_staff = True\n user.save()\n return user\n\n\nFurther information\n-------------------\n\nIMAPBackend copied from http://www.djangorocks.com/tutorials/creating-a-custom-authentication-backend/creating-the-imap-authentication-backend.html", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ouhouhsami/django-imapauth", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-imapauth", "package_url": "https://pypi.org/project/django-imapauth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-imapauth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ouhouhsami/django-imapauth" }, "release_url": "https://pypi.org/project/django-imapauth/0.1/", "requires_dist": null, "requires_python": null, "summary": "Imap authentification backend for Django", "version": "0.1" }, "last_serial": 869800, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "af145e826dd700ff049519bce0be4d74", "sha256": "99b99d198b037a5877a3a28a8f63410c848befaefafb178624cd70d42a2caee7" }, "downloads": -1, "filename": "django-imapauth-0.1.tar.gz", "has_sig": false, "md5_digest": "af145e826dd700ff049519bce0be4d74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3530, "upload_time": "2013-09-20T09:13:33", "url": "https://files.pythonhosted.org/packages/82/c5/b200afcb4033d779c7040f11a22bc71f901555bee6f94bbc890b5c53aeab/django-imapauth-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af145e826dd700ff049519bce0be4d74", "sha256": "99b99d198b037a5877a3a28a8f63410c848befaefafb178624cd70d42a2caee7" }, "downloads": -1, "filename": "django-imapauth-0.1.tar.gz", "has_sig": false, "md5_digest": "af145e826dd700ff049519bce0be4d74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3530, "upload_time": "2013-09-20T09:13:33", "url": "https://files.pythonhosted.org/packages/82/c5/b200afcb4033d779c7040f11a22bc71f901555bee6f94bbc890b5c53aeab/django-imapauth-0.1.tar.gz" } ] }