{ "info": { "author": "Gustavo Soares Souza", "author_email": "gustavosoares@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "django-ldap-basic-auth\n======================\n\nSimple middleware that injects the Authorization header in the request after authenticating against a ldap server\n\nIf you use BasicAuthentication in production you must ensure that your API is only available over https. You should also ensure that your API clients will always re-request the username and password at login, and will never store those details to persistent storage.\n\nInstallation\n===============\nYou can install django-ldap-basic-auth in 2 ways: using pip or by setup.py install\n\n\n $ pip install django-ldap-basic-auth\n\n\nThen modify your settings.py\n\n\n INSTALLED_APPS = INSTALLED_APPS + (\n 'django_ldap_basic_auth',\n )\n\n AUTHENTICATION_BACKENDS = ('django_ldap_basic_auth.backends.LdapBasicAuthBackend',) + AUTHENTICATION_BACKENDS\n\n MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (\n 'django_ldap_basic_auth.middleware.InjectBasicAuthMiddleware',\n )\n\n DJANGO_LDAP_BASIC_AUTH_ACTIVATED = True\n\nIf you want to store the information in a http cookie, called HTTP_AUTHORIZATION, then put in your settings.py:\n\n DJANGO_LDAP_BASIC_AUTH_USE_COOKIES = True\n\nYou must define a django cache backend too.\n\nDependencies\n============\n\n* Django >= 1.4.x\n* django-auth-ldap (https://pythonhosted.org/django-auth-ldap/)\n\n\nTODO\n====\n\n* Improve tests\n* Check if django-auth-ldap is installed\n\nCHANGELOG\n=========\n* 0.0.1\n\t* first version\n* 0.0.2\n * including request.session.modified = True to make sure that Django will persist the session\n* 0.0.3\n * use http cookie to store data\n* 0.0.4\n * check if request has atribute user", "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/gustavosoares/django-ldap-basic-auth", "keywords": "revisions versioning history audit", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-ldap-basic-auth", "package_url": "https://pypi.org/project/django-ldap-basic-auth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-ldap-basic-auth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/gustavosoares/django-ldap-basic-auth" }, "release_url": "https://pypi.org/project/django-ldap-basic-auth/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Simple middleware that injects the Authorization header in the request after authenticating against a ldap server.", "version": "0.0.4" }, "last_serial": 1289013, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "548ededc80a759a2c9b2a99a0906064a", "sha256": "1dabcef20f4f210b992cf9acbb3fedc1e5e17f921f9f7c6a0ca1f5611810795f" }, "downloads": -1, "filename": "django-ldap-basic-auth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "548ededc80a759a2c9b2a99a0906064a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3169, "upload_time": "2014-10-20T19:36:44", "url": "https://files.pythonhosted.org/packages/64/a0/a58df704b1c3b6798256ac37655fc840983fcade384189869778f09d4e2d/django-ldap-basic-auth-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c12656c0683ec8e1abd9c881b2e097ce", "sha256": "3cf50ad2180c2a90eab5a0ff3259c566899e1eee3c4e869738c04b26812fff6c" }, "downloads": -1, "filename": "django-ldap-basic-auth-0.0.2.tar.gz", "has_sig": false, "md5_digest": "c12656c0683ec8e1abd9c881b2e097ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3695, "upload_time": "2014-10-23T16:07:40", "url": "https://files.pythonhosted.org/packages/ba/40/1e07274f59b96666ced3d4c547a0a5579f4723c62aff6b4c677308293320/django-ldap-basic-auth-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "dcb95c2f740b5f0ea118ab0d26ed3c6a", "sha256": "f542af8a864beaee8d7433b190176369af3f3c66c5e640d3e6b28b8e6f884b6a" }, "downloads": -1, "filename": "django-ldap-basic-auth-0.0.3.tar.gz", "has_sig": false, "md5_digest": "dcb95c2f740b5f0ea118ab0d26ed3c6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4040, "upload_time": "2014-10-27T20:38:41", "url": "https://files.pythonhosted.org/packages/d5/a3/98063eff7cf8c534d81966539856ea10fe9454f44736d60306e4b1180dd1/django-ldap-basic-auth-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "9feeb68f465e05c879f01c2e4dff08fa", "sha256": "ed98c2da88604612f8713c1acb23a7497f0f991b6497b70f1f057aa68b80c1a7" }, "downloads": -1, "filename": "django-ldap-basic-auth-0.0.4.tar.gz", "has_sig": false, "md5_digest": "9feeb68f465e05c879f01c2e4dff08fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4049, "upload_time": "2014-10-30T18:46:01", "url": "https://files.pythonhosted.org/packages/ca/9e/ee3a199bf4ac655504f473c26a5180e0b907e6e3d2c92786701f155e03d3/django-ldap-basic-auth-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9feeb68f465e05c879f01c2e4dff08fa", "sha256": "ed98c2da88604612f8713c1acb23a7497f0f991b6497b70f1f057aa68b80c1a7" }, "downloads": -1, "filename": "django-ldap-basic-auth-0.0.4.tar.gz", "has_sig": false, "md5_digest": "9feeb68f465e05c879f01c2e4dff08fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4049, "upload_time": "2014-10-30T18:46:01", "url": "https://files.pythonhosted.org/packages/ca/9e/ee3a199bf4ac655504f473c26a5180e0b907e6e3d2c92786701f155e03d3/django-ldap-basic-auth-0.0.4.tar.gz" } ] }