{ "info": { "author": "Joey Wilhelm", "author_email": "tarkatronic@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "===============\ndjango-ssl-auth\n===============\n\n.. image:: https://img.shields.io/pypi/v/django-ssl-auth.svg\n :target: https://pypi.python.org/pypi/django-ssl-auth\n :alt: Latest Version\n\n.. image:: https://travis-ci.org/tarkatronic/django-ssl-auth.svg?branch=master\n :target: https://travis-ci.org/tarkatronic/django-ssl-auth\n :alt: Test/build status\n\n.. image:: https://codecov.io/gh/tarkatronic/django-ssl-auth/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/tarkatronic/django-ssl-auth\n :alt: Code coverage\n\nSSL authentication backend and middleware for Django for authenticating users\nwith SSL client certificates\n\nLicense\n=======\n\nMIT license, see LICENSE.txt for full text.\n\nSetup\n=====\n\nSSL\n---\n\nSet up nginx and create SSL certificates for your server and set up the paths\nto server private key, server certificate and CA certificate used to sign\nthe client certificates. Example configuration file is in samples/nginx.conf\n\nIf you are on OS X, I suggest OS X KeyChain access for doing this for\ntesting, as it will automatically make your client certificates available in\nall both Google chrome & Safari. Instructions can be found e.g.\nhttp://www.dummies.com/how-to/content/how-to-become-a-certificate-authority-using-lion-s.html\n\nOn other platforms, there are many tutorials on how to do this with OpenSSL\ne.g. http://pages.cs.wisc.edu/~zmiller/ca-howto/\n\nRestart your ngninx (sudo nginx -s restart), make sure your green unicorn is\nrunning and check that your https:// url loads your application and the\n*server certificate is valid*.\n\nThis module\n-----------\n\n1. run setup.py (sudo python setup.py install) or install the latest release\n using ``pip install django_ssl_auth``\n\n2. edit your ``settings.py``\n\n 1. add ``\"django_ssl_auth.SSLClientAuthMiddleware\"`` to your ``MIDDLEWARE_CLASSES``\n 2. add ``\"django_ssl_auth.SSLClientAuthBackend\"`` to your ``AUTHENTICATION_BACKENDS``\n\nConfiguration\n~~~~~~~~~~~~~\n\nThere are two things you need to do in ``settings.py``\n\n1. Define a function that can return a dictionary with fields that are required\n by your user model, e.g.\n ``USER_DATA_FN = 'django_ssl_auth.fineid.user_dict_from_dn`` is a sample\n implementation that takes the required fields from the DN of a Finnish\n government issued ID smart card for the ``contrib.auth.models.User``.\n2. To automatically create ``User``s for all valid certificate holders, set\n ``AUTOCREATE_VALID_SSL_USERS = True``. Auto-created users will be set to\n inactive by default, consider using the `User.is_active`_ field in your\n `LOGIN_REDIRECT_URL`_ view to notifying the user of their status.\n\nFor details, see ``testapp/ssltest/settings.py``\n\nSmart Card support\n~~~~~~~~~~~~~~~~~~\n\nFor (Finnish) instructions see ``doc/fineid/FINEID.md``\n\n\nTODO\n====\n\n* Active directory integration.\n\nHow to get help\n===============\n\nPlease do ask your questions on http://stackoverflow.com/\nI am active there, and more likely to answer you publicly.\nAlso, you can try catching TheJoey on #django@freenode\n\n.. _User.is_active: https://docs.djangoproject.com/en/stable/ref/contrib/auth/#django.contrib.auth.models.User.is_active\n.. _LOGIN_REDIRECT_URL: https://docs.djangoproject.com/en/stable/ref/settings/#login-redirect-url", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/tarkatronic/django-ssl-auth/archive/master.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tarkatronic/django-ssl-auth/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-ssl-auth", "package_url": "https://pypi.org/project/django-ssl-auth/", "platform": "", "project_url": "https://pypi.org/project/django-ssl-auth/", "project_urls": { "Download": "https://github.com/tarkatronic/django-ssl-auth/archive/master.tar.gz", "Homepage": "https://github.com/tarkatronic/django-ssl-auth/" }, "release_url": "https://pypi.org/project/django-ssl-auth/2.0.1/", "requires_dist": null, "requires_python": "", "summary": "Django SSL Client Authentication", "version": "2.0.1" }, "last_serial": 3254506, "releases": { "0.8.2.1": [ { "comment_text": "Debian 6.x (Squeeze) package", "digests": { "md5": "b28d27cc11ad4a8cb4a544e6e15b749f", "sha256": "c8a1930f12fb7c4ef27de4191b64341ae927d931263e2e4cc337f310f8325dba" }, "downloads": -1, "filename": "django-ssl-auth_0.8.2.1-126_all.deb", "has_sig": false, "md5_digest": "b28d27cc11ad4a8cb4a544e6e15b749f", "packagetype": "bdist_dumb", "python_version": "2.7", "requires_python": null, "size": 3472, "upload_time": "2013-08-23T05:24:57", "url": "https://files.pythonhosted.org/packages/45/10/4439d676b80661fed18abba101666122af77097cb721bcf64f1eef07c386/django-ssl-auth_0.8.2.1-126_all.deb" }, { "comment_text": "", "digests": { "md5": "64f1d46c0a97677758658320ceb1fafc", "sha256": "f6f12bc65cae5b55658122a54a596c4a0fbcc328694d6dbd8149883c80b257a8" }, "downloads": -1, "filename": "django-ssl-auth-0.8.2.1-126.el6.noarch.rpm", "has_sig": false, "md5_digest": "64f1d46c0a97677758658320ceb1fafc", "packagetype": "bdist_rpm", "python_version": "2.6", "requires_python": null, "size": 6212, "upload_time": "2013-08-23T05:26:35", "url": "https://files.pythonhosted.org/packages/3e/5f/e4f0f9990d56a8f5b27f2338327b1c3a6dc5b4d8fecc0fff6068fb41e99b/django-ssl-auth-0.8.2.1-126.el6.noarch.rpm" }, { "comment_text": "", "digests": { "md5": "968813bcc2391c68f082b190bccb9b4b", "sha256": "96b74ddcdf20f1de1344e78ace9ccf02af8f320eea7f43d774502283370fc039" }, "downloads": -1, "filename": "django-ssl-auth-0.8.2.1-126.el6.src.rpm", "has_sig": false, "md5_digest": "968813bcc2391c68f082b190bccb9b4b", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 4449, "upload_time": "2013-08-23T05:26:50", "url": "https://files.pythonhosted.org/packages/a8/40/2819a4a079f72657d098420270a640fbe6a78307ead0bee55d03277cc537/django-ssl-auth-0.8.2.1-126.el6.src.rpm" }, { "comment_text": "SLES 11", "digests": { "md5": "59a826331d1427fb63821e2e34bdbe90", "sha256": "33c498af1f8bee1f7ea15479f66932ceaad6422fdb0e10c9bfb2edb0823c7195" }, "downloads": -1, "filename": "django-ssl-auth-0.8.2.1-126.sles11.noarch.rpm", "has_sig": false, "md5_digest": "59a826331d1427fb63821e2e34bdbe90", "packagetype": "bdist_rpm", "python_version": "2.6", "requires_python": null, "size": 5377, "upload_time": "2013-08-23T05:27:21", "url": "https://files.pythonhosted.org/packages/46/9a/d75eb66d0efdf41437e8f042aed168e38515959a82c513d1779587d1843f/django-ssl-auth-0.8.2.1-126.sles11.noarch.rpm" }, { "comment_text": "", "digests": { "md5": "9d885a43343ae0715952a98d1c2bfaac", "sha256": "644ad49b2e4734ebe8d54db802a0c4464585e152aed1f797740fcd7865bb54f2" }, "downloads": -1, "filename": "django-ssl-auth-0.8.2.1-126.sles11.src.rpm", "has_sig": false, "md5_digest": "9d885a43343ae0715952a98d1c2bfaac", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 4341, "upload_time": "2013-08-23T05:27:47", "url": "https://files.pythonhosted.org/packages/5f/ea/af6c638f801e57fbc40d0ae6ccf780ab3fae44220279e70d84ab97803a1e/django-ssl-auth-0.8.2.1-126.sles11.src.rpm" }, { "comment_text": "", "digests": { "md5": "aad16ad1c7ca4d1298b37c9783ef82f4", "sha256": "8d422ef694e98d0ef3aefcda7e0e7729b3429054aaab877a2ba761a9339d240c" }, "downloads": -1, "filename": "django-ssl-auth-0.8.2.1.tar.gz", "has_sig": false, "md5_digest": "aad16ad1c7ca4d1298b37c9783ef82f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3079, "upload_time": "2013-08-16T11:12:03", "url": "https://files.pythonhosted.org/packages/4e/30/41e2bddb6f593bb152aa7cad0373062433733c987f75a5faa761b5a92d28/django-ssl-auth-0.8.2.1.tar.gz" } ], "0.8.2.2": [ { "comment_text": "", "digests": { "md5": "4127c35fcebbc2574fd68af6637344f1", "sha256": "0cf0d373f8f9ba7fcc73cfc5d106d77d39f50031eac1f2e646730b469753438a" }, "downloads": -1, "filename": "django-ssl-auth-0.8.2.2.tar.gz", "has_sig": false, "md5_digest": "4127c35fcebbc2574fd68af6637344f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3067, "upload_time": "2013-09-04T08:39:35", "url": "https://files.pythonhosted.org/packages/9b/c0/ab77fb65a06c62302d3680ea071f287f146848b919efc3e3f964475a4f92/django-ssl-auth-0.8.2.2.tar.gz" } ], "0.8.2.3": [ { "comment_text": "built for Darwin-12.4.0", "digests": { "md5": "28032a3a2f9efdb653d468046d31294c", "sha256": "f9014aa041043978de5d2cb20eb32cd743920e7503cc1aee11e5fca61922e128" }, "downloads": -1, "filename": "django-ssl-auth-0.8.2.3.macosx-10.8-x86_64.tar.gz", "has_sig": false, "md5_digest": "28032a3a2f9efdb653d468046d31294c", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3617, "upload_time": "2013-09-07T13:47:18", "url": "https://files.pythonhosted.org/packages/2f/b5/17589aff12e53bacc1d73700ca475d82758e7f682c88d1d41c05f211c774/django-ssl-auth-0.8.2.3.macosx-10.8-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "ea6929c59282587fdfe216cd79edcd1f", "sha256": "8e45c96e2fb22134249fe0fd99f8adf93d063eda8e16a70eb8493edae33c2475" }, "downloads": -1, "filename": "django-ssl-auth-0.8.2.3.tar.gz", "has_sig": false, "md5_digest": "ea6929c59282587fdfe216cd79edcd1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3098, "upload_time": "2013-09-05T12:18:00", "url": "https://files.pythonhosted.org/packages/8d/cd/7c93a6b7f4ee808f8ab44a21aad5a6982278e7f9312a5ea60e17cd60a17e/django-ssl-auth-0.8.2.3.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "25baa05cbeb890bf2858c9d3476a1f1b", "sha256": "6165cb942484adbccf649c29a7987689ce27ee6f8e30c65c0b3e3b59a7a2503e" }, "downloads": -1, "filename": "django-ssl-auth-1.0.tar.gz", "has_sig": false, "md5_digest": "25baa05cbeb890bf2858c9d3476a1f1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3585, "upload_time": "2013-09-17T11:15:59", "url": "https://files.pythonhosted.org/packages/5d/ab/58891ddccb3e728e14d2e96c59fe9474dc2655dee8c76b37e14a1b540fe6/django-ssl-auth-1.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "a66035f648e4f52a55bcb41fdbfe8cb8", "sha256": "1ee0231a7c77e5fc14c084adc75f75f5ebf65239b9fd76c4e9852e8e78585684" }, "downloads": -1, "filename": "django-ssl-auth-2.0.0.tar.gz", "has_sig": false, "md5_digest": "a66035f648e4f52a55bcb41fdbfe8cb8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5330, "upload_time": "2017-10-14T19:23:53", "url": "https://files.pythonhosted.org/packages/b9/1e/6d792f7df86cd97c6a2778523785f9c2b83d13bd6f3fcabb130b89f31d5a/django-ssl-auth-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "55479c1857f3e6b54f112314051ecdd6", "sha256": "8f88c7c2da7a7f92f25b226958edf4101efbd2465ba3b95f2701581556615880" }, "downloads": -1, "filename": "django-ssl-auth-2.0.1.tar.gz", "has_sig": false, "md5_digest": "55479c1857f3e6b54f112314051ecdd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5767, "upload_time": "2017-10-16T19:28:19", "url": "https://files.pythonhosted.org/packages/c5/9a/fa7ecb21fc15b4d267944a730b1a9adb0c01c160614a8b62f9f43b371e2b/django-ssl-auth-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "55479c1857f3e6b54f112314051ecdd6", "sha256": "8f88c7c2da7a7f92f25b226958edf4101efbd2465ba3b95f2701581556615880" }, "downloads": -1, "filename": "django-ssl-auth-2.0.1.tar.gz", "has_sig": false, "md5_digest": "55479c1857f3e6b54f112314051ecdd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5767, "upload_time": "2017-10-16T19:28:19", "url": "https://files.pythonhosted.org/packages/c5/9a/fa7ecb21fc15b4d267944a730b1a9adb0c01c160614a8b62f9f43b371e2b/django-ssl-auth-2.0.1.tar.gz" } ] }